File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/me/byteful/plugin/leveltools Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ repositories {
3737}
3838
3939dependencies {
40- implementation 'de.tr7zw:item-nbt-api:2.13.0 '
40+ implementation 'de.tr7zw:item-nbt-api:2.13.1 '
4141 implementation 'com.github.Redempt:RedLib:6.6.1'
4242 implementation 'com.github.Redempt:Crunch:2.0.3'
43- implementation 'com.github.cryptomorin:XSeries:11.0 .0'
43+ implementation 'com.github.cryptomorin:XSeries:11.1 .0'
4444 implementation 'com.github.Revxrsal.Lamp:common:3.2.1'
4545 implementation 'com.github.Revxrsal.Lamp:bukkit:3.2.1'
4646 implementation 'com.github.Sven65:Item-Names:1.0.2'
@@ -55,7 +55,7 @@ dependencies {
5555}
5656
5757group = 'me.byteful.plugin'
58- version = '1.4.0'
58+ version = '1.4.0.1 '
5959description = 'LevelTools'
6060java.sourceCompatibility = JavaVersion.VERSION_17
6161
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ public void onReload(CommandSender sender) {
4545 @Subcommand("reset")
4646 @Description("Resets all XP/Levels for all the items in the target player.")
4747 public void onReset(CommandSender sender, Player target, @Switch("all") boolean all) {
48+ if (!checkPerm(sender)) {
49+ return;
50+ }
51+
4852 final ItemStack hand = LevelToolsUtil.getHand(target);
4953 if (!all) {
5054 if (!LevelToolsUtil.isSupportedTool(hand.getType())) {
You can’t perform that action at this time.
0 commit comments