mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 13:01:20 +02:00
Move spawnmob.stack perm check to the right place.
This commit is contained in:
@@ -82,10 +82,6 @@ public class SpawnMob
|
|||||||
{
|
{
|
||||||
throw new Exception(_("unableToSpawnMob"));
|
throw new Exception(_("unableToSpawnMob"));
|
||||||
}
|
}
|
||||||
if (parts.size() > 1 && !user.isAuthorized("essentials.spawnmob.stack"))
|
|
||||||
{
|
|
||||||
throw new Exception(_("cannotStackMob"));
|
|
||||||
}
|
|
||||||
spawnmob(ess, server, user, user, block.getLocation(), parts, data, mobCount);
|
spawnmob(ess, server, user, user, block.getLocation(), parts, data, mobCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -35,6 +35,11 @@ public class Commandspawnmob extends EssentialsCommand
|
|||||||
mobCount = Integer.parseInt(args[1]);
|
mobCount = Integer.parseInt(args[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mobParts.size() > 1 && !user.isAuthorized("essentials.spawnmob.stack"))
|
||||||
|
{
|
||||||
|
throw new Exception(_("cannotStackMob"));
|
||||||
|
}
|
||||||
|
|
||||||
if (args.length >= 3)
|
if (args.length >= 3)
|
||||||
{
|
{
|
||||||
final User target = getPlayer(ess.getServer(), user, args, 2);
|
final User target = getPlayer(ess.getServer(), user, args, 2);
|
||||||
|
Reference in New Issue
Block a user