update to 3.1.1

now sends a messsage when a player is at the last prestige and last rank and trying to rank up
fix playtime minutes requirement
This commit is contained in:
okx-code
2018-09-29 10:10:42 +01:00
parent f8ede913ef
commit 6cafe7940b
5 changed files with 11 additions and 3 deletions
@@ -87,7 +87,11 @@ public class MessageBuilder {
* @return an EmptyMessageBuilder if the message is empty, itself otherwise
*/
public MessageBuilder failIfEmpty() {
if (message.isEmpty()) {
return failIf(message.isEmpty());
}
public MessageBuilder failIf(boolean value) {
if (value) {
return new EmptyMessageBuilder();
} else {
return this;