!fixed random asserror

This commit is contained in:
Indyuce 2022-01-08 14:58:30 +01:00
parent bd330911b9
commit 09ffb2155b

View File

@ -26,7 +26,7 @@ public class CheckStatCommandTreeNode extends CommandTreeNode {
ItemStat stat = MMOItems.plugin.getStats().get(args[2].toUpperCase().replace("-", "_"));
if (stat == null) {
sender.sendMessage(ChatColor.RED + "Couldn't find the stat called " + args[1].toUpperCase().replace("-", "_") + ".");
sender.sendMessage(ChatColor.RED + "Couldn't find the stat called " + args[2].toUpperCase().replace("-", "_") + ".");
return CommandResult.FAILURE;
}