Deny negative ratings

This commit is contained in:
Jesse Boyd 2015-11-28 23:27:36 +11:00
parent 1ee13ff96c
commit c2b781da98
2 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ public class Rate extends SubCommand {
final int rating;
if (MathMan.isInteger(arg) && (arg.length() < 3) && (arg.length() > 0)) {
rating = Integer.parseInt(arg);
if (rating > 10) {
if (rating > 10 || rating < 1) {
sendMessage(player, C.RATING_NOT_VALID);
return false;
}

Binary file not shown.