Commit b9e27828 authored by 筱傑's avatar 筱傑 Committed by GitHub
Browse files

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

Level should be **lower than 16**
parent 0d262e2d
......@@ -53,7 +53,7 @@ public final class TalentCommand implements CommandHandler {
CommandHandler.sendMessage(sender, "To get talent ID: /talent getid");
return;
}
if (nextLevel > 16){
if (nextLevel >= 16){
CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16");
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>");
return;
}
if (nextLevel > 16){
if (nextLevel >= 16){
CommandHandler.sendMessage(sender, "Invalid talent level. Level should be lower than 16");
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment