Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Mar 5, 2024
1 parent 3a7a0a4 commit 4d0b19f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
import org.bukkit.event.player.PlayerInteractEntityEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.inventory.ItemStack;
import org.slf4j.event.Level;

import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.logging.Level;
import java.util.stream.Collectors;

public class BannedMaterial implements AnarchyExploitFixesModule, Listener {
Expand Down Expand Up @@ -50,7 +50,7 @@ public BannedMaterial() {
try {
return Material.valueOf(confMaterial);
} catch (IllegalArgumentException e) {
LogUtil.materialNotRecognized(Level.WARNING, name(), confMaterial);
LogUtil.materialNotRecognized(Level.WARN, name(), confMaterial);
return null;
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.BlockStateMeta;
import org.bukkit.inventory.meta.BundleMeta;
import org.slf4j.event.Level;

import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;

import static me.moomoo.anarchyexploitfixes.utils.MaterialUtil.isShulkerBox;

Expand All @@ -58,7 +58,7 @@ public RevertOverstacked() {
Material itemMaterial = Material.valueOf(configuredItem);
this.whitelistedItems.add(itemMaterial);
} catch (IllegalArgumentException e) {
LogUtil.materialNotRecognized(Level.WARNING, name(), configuredItem);
LogUtil.materialNotRecognized(Level.WARN, name(), configuredItem);
}
});
this.preventHopperBypass = config.getBoolean("illegals.revert-overstacked-items.prevent-hopper32k-mechanic", false, """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
import org.bukkit.inventory.meta.BundleMeta;
import org.bukkit.inventory.meta.Damageable;
import org.bukkit.inventory.meta.ItemMeta;
import org.slf4j.event.Level;

import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;

import static me.moomoo.anarchyexploitfixes.utils.MaterialUtil.isShulkerBox;

Expand All @@ -59,7 +59,7 @@ public RevertUnbreakables() {
Material itemMaterial = Material.valueOf(configuredItem);
whitelistedItems.add(itemMaterial);
} catch (IllegalArgumentException e) {
LogUtil.materialNotRecognized(Level.WARNING, name(), configuredItem);
LogUtil.materialNotRecognized(Level.WARN, name(), configuredItem);
}
});
this.preventHopperBypass = config.getBoolean("illegals.revert-unbreakables.prevent-hopper32k-mechanic", true, """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.BlockStateMeta;
import org.bukkit.inventory.meta.BundleMeta;
import org.slf4j.event.Level;

import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;

import static me.moomoo.anarchyexploitfixes.utils.MaterialUtil.isShulkerBox;

Expand Down Expand Up @@ -61,7 +61,7 @@ public HigherEnchants() {
Material itemMaterial = Material.valueOf(configuredItem);
this.whitelistedItems.add(itemMaterial);
} catch (IllegalArgumentException e) {
LogUtil.materialNotRecognized(Level.WARNING, name(), configuredItem);
LogUtil.materialNotRecognized(Level.WARN, name(), configuredItem);
}
});
this.preventHopperBypass = config.getBoolean("illegals.enchantments.revert-higher-enchants.prevent-hopper32k-mechanic", true, """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.BlockStateMeta;
import org.slf4j.event.Level;

import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;

import static me.moomoo.anarchyexploitfixes.utils.MaterialUtil.isShulkerBox;

Expand All @@ -59,7 +59,7 @@ public InapplicableEnchants() {
Material itemMaterial = Material.valueOf(configuredItem);
this.whitelistedItems.add(itemMaterial);
} catch (IllegalArgumentException e) {
LogUtil.materialNotRecognized(Level.WARNING, name(), configuredItem);
LogUtil.materialNotRecognized(Level.WARN, name(), configuredItem);
}
});
this.preventHopperBypass = config.getBoolean("illegals.enchantments.revert-inapplicable-enchants.prevent-hopper32k-mechanic", false, """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.inventory.ItemStack;
import org.slf4j.event.Level;

import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;

public class IncompatibleEnchants implements AnarchyExploitFixesModule, Listener {

Expand All @@ -52,7 +52,7 @@ public IncompatibleEnchants() {
Material itemMaterial = Material.valueOf(configuredItem);
whitelistedItems.add(itemMaterial);
} catch (IllegalArgumentException e) {
LogUtil.materialNotRecognized(Level.WARNING, name(), configuredItem);
LogUtil.materialNotRecognized(Level.WARN, name(), configuredItem);
}
});
this.enableStrictPrevention = config.getBoolean("illegals.enchantments.revert-incompatible-enchants.periodically-check-player-inventories.enable", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.BlockStateMeta;
import org.bukkit.inventory.meta.BundleMeta;
import org.slf4j.event.Level;

import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;

import static me.moomoo.anarchyexploitfixes.utils.LogUtil.moduleLog;
import static me.moomoo.anarchyexploitfixes.utils.MaterialUtil.isShulkerBox;
Expand Down Expand Up @@ -64,7 +64,7 @@ public DamageModifierTags() {
Material itemMaterial = Material.valueOf(configuredItem);
this.whitelistedItems.add(itemMaterial);
} catch (IllegalArgumentException e) {
LogUtil.materialNotRecognized(Level.WARNING, name(), configuredItem);
LogUtil.materialNotRecognized(Level.WARN, name(), configuredItem);
}
});
this.shouldDeleteInstead = config.getBoolean("illegals.nbt.revert-illegal-damage-modifiers.delete-item-instead", false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.BlockStateMeta;
import org.slf4j.event.Level;

import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;

import static me.moomoo.anarchyexploitfixes.utils.LogUtil.materialNotRecognized;
import static me.moomoo.anarchyexploitfixes.utils.LogUtil.moduleLog;
Expand Down Expand Up @@ -58,7 +58,7 @@ public FilledStorageItemTags() {
Material typeToCheck = Material.valueOf(configuredType);
storageTypesToCheck.add(typeToCheck);
} catch (IllegalArgumentException e) {
materialNotRecognized(Level.WARNING, name(), configuredType);
materialNotRecognized(Level.WARN, name(), configuredType);
}
});
}
Expand Down

0 comments on commit 4d0b19f

Please sign in to comment.