diff --git a/build.gradle b/build.gradle index 6cbe655..dc61032 100644 --- a/build.gradle +++ b/build.gradle @@ -37,10 +37,10 @@ repositories { } dependencies { - implementation 'de.tr7zw:item-nbt-api:2.13.0' + implementation 'de.tr7zw:item-nbt-api:2.13.1' implementation 'com.github.Redempt:RedLib:6.6.1' implementation 'com.github.Redempt:Crunch:2.0.3' - implementation 'com.github.cryptomorin:XSeries:11.0.0' + implementation 'com.github.cryptomorin:XSeries:11.1.0' implementation 'com.github.Revxrsal.Lamp:common:3.2.1' implementation 'com.github.Revxrsal.Lamp:bukkit:3.2.1' implementation 'com.github.Sven65:Item-Names:1.0.2' @@ -55,7 +55,7 @@ dependencies { } group = 'me.byteful.plugin' -version = '1.4.0' +version = '1.4.0.1' description = 'LevelTools' java.sourceCompatibility = JavaVersion.VERSION_17 diff --git a/src/main/java/me/byteful/plugin/leveltools/LevelToolsCommand.java b/src/main/java/me/byteful/plugin/leveltools/LevelToolsCommand.java index 7675d23..3104b50 100644 --- a/src/main/java/me/byteful/plugin/leveltools/LevelToolsCommand.java +++ b/src/main/java/me/byteful/plugin/leveltools/LevelToolsCommand.java @@ -45,6 +45,10 @@ public void onReload(CommandSender sender) { @Subcommand("reset") @Description("Resets all XP/Levels for all the items in the target player.") public void onReset(CommandSender sender, Player target, @Switch("all") boolean all) { + if (!checkPerm(sender)) { + return; + } + final ItemStack hand = LevelToolsUtil.getHand(target); if (!all) { if (!LevelToolsUtil.isSupportedTool(hand.getType())) {