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 d484ba7ed6
commit ec09bc28f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
} }