mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
Allow permission control of stacked mobs
Adds essentials.spawnmob.stack to allow stacking of more than one mob using the /spawnmob command Adds https://www.assembla.com/spaces/essentials/tickets/4050
This commit is contained in:
@@ -82,6 +82,10 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -534,3 +534,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
@@ -531,3 +531,4 @@ pWeatherPlayers=\u00a76These players have their own weather:\u00a7r
|
|||||||
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
pWeatherReset=\u00a76Player weather has been reset for: \u00a7c{0}
|
||||||
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
pWeatherSet=\u00a76Player weather is set to \u00a7c{0}\u00a76 for: \u00a7c{1}.
|
||||||
pWeatherInvalidAlias=\u00a74Invalid weather type
|
pWeatherInvalidAlias=\u00a74Invalid weather type
|
||||||
|
cannotStackMob=\u00a74You do not have permission to stack multiple mobs
|
||||||
|
Reference in New Issue
Block a user