Improve diceroll looks, implement limits to avoid abuse
This commit is contained in:
@@ -53,6 +53,9 @@ public class ClearCommand implements MessageCommand
|
||||
}
|
||||
}
|
||||
|
||||
// cap the amount to avoid abuse.
|
||||
if(toDeleteAmount > ClearChat.getMaxAmount()) toDeleteAmount = 0;
|
||||
|
||||
error = ClearChat.checkDeleteAmount(toDeleteAmount);
|
||||
if (error != null) {
|
||||
event.getMessage().reply(error).queue();
|
||||
|
Reference in New Issue
Block a user