Fixed can set talent level to 16 bug (#408)

Level should be **lower than 16**
This commit is contained in:
筱傑 2022-05-01 22:42:02 +08:00 committed by GitHub
parent 0d262e2d07
commit b9e27828b8

View File

@ -53,7 +53,7 @@ public final class TalentCommand implements CommandHandler {
CommandHandler.sendMessage(sender, "To get talent ID: /talent getid"); CommandHandler.sendMessage(sender, "To get talent ID: /talent getid");
return; return;
} }
if (nextLevel > 16){ if (nextLevel >= 16){
CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16"); CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16");
return; return;
} }
@ -117,7 +117,7 @@ public final class TalentCommand implements CommandHandler {
CommandHandler.sendMessage(sender, "To set talent level: /talent <n or e or q> <value>"); CommandHandler.sendMessage(sender, "To set talent level: /talent <n or e or q> <value>");
return; return;
} }
if (nextLevel > 16){ if (nextLevel >= 16){
CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16"); CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16");
return; return;
} }