Add way to disable blitz

This commit is contained in:
Electroid 2017-06-06 01:12:20 -07:00
parent d7d9ac729b
commit 7aa9926bcc
1 changed files with 3 additions and 1 deletions

View File

@ -244,7 +244,9 @@ public class AdminCommands implements Commands {
}
int lives = args.getInteger(0, 1);
Lives.Type type = tc.oc.commons.bukkit.commands.CommandUtils.getEnum(args, sender, 1, Lives.Type.class, Lives.Type.INDIVIDUAL);
blitz.activate(BlitzProperties.create(match, lives, type));
if(lives >= 1) {
blitz.activate(BlitzProperties.create(match, lives, type));
}
}
}