mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-21 01:01:35 +08:00
Add permission to adjust delay in /spawner command (#3964)
This commit is contained in:
parent
0ef1e23c69
commit
657a11b1f4
@ -52,7 +52,7 @@ public class Commandspawner extends EssentialsCommand {
|
||||
throw new Exception(tl("noPermToSpawnMob"));
|
||||
}
|
||||
|
||||
if (args.length > 1 && NumberUtil.isInt(args[1])) {
|
||||
if (args.length > 1 && NumberUtil.isInt(args[1]) && user.isAuthorized("essentials.spawner.delay")) {
|
||||
delay = Integer.parseInt(args[1]);
|
||||
}
|
||||
final Trade charge = new Trade("spawner-" + mob.name.toLowerCase(Locale.ENGLISH), ess);
|
||||
|
Loading…
Reference in New Issue
Block a user