mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +00:00
fix this
This commit is contained in:
@@ -84,7 +84,7 @@ public class CommandToolStats implements TabExecutor {
|
||||
}
|
||||
Player player = (Player) sender;
|
||||
ItemStack heldItem = player.getInventory().getItemInMainHand();
|
||||
if (ItemChecker.isValidItem(heldItem.getType())) {
|
||||
if (!ItemChecker.isValidItem(heldItem.getType())) {
|
||||
audiences.sender(sender).sendMessage(Component.text("You must hold a valid item.").color(NamedTextColor.RED));
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user