Added another way to set non-presser or can't press flairs
This commit is contained in:
parent
b39a2888d5
commit
f71904c522
1 changed files with 13 additions and 6 deletions
|
@ -507,12 +507,19 @@ public class Commands implements CommandExecutor {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
short flairtime = 0x00;
|
short flairtime = 0x00;
|
||||||
try {
|
if (args[3].equalsIgnoreCase("non-presser"))
|
||||||
flairtime = Short.parseShort(args[3]);
|
flairtime = MaybeOfflinePlayer.FlairTimeNonPresser;
|
||||||
} catch (Exception e) {
|
else if (args[3].equalsIgnoreCase("cant-press"))
|
||||||
SendMessage(player, "§cFlairtime must be a number.");
|
flairtime = MaybeOfflinePlayer.FlairTimeCantPress;
|
||||||
return;
|
else {
|
||||||
}
|
try {
|
||||||
|
flairtime = Short.parseShort(args[3]);
|
||||||
|
} catch (Exception e) {
|
||||||
|
SendMessage(player,
|
||||||
|
"§cFlairtime must be a number or \"non-presser\", \"cant-press\".");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} //TODO: Split config to per-player
|
||||||
boolean cheater = false;
|
boolean cheater = false;
|
||||||
if (args[4].equalsIgnoreCase("true"))
|
if (args[4].equalsIgnoreCase("true"))
|
||||||
cheater = true;
|
cheater = true;
|
||||||
|
|
Loading…
Reference in a new issue