Skip to content

Commit

Permalink
v1.4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
byteful committed Jun 23, 2024
1 parent 136ffc6 commit 4869088
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down

0 comments on commit 4869088

Please sign in to comment.