mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-26 15:33:56 +00: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:
parent
39d66b1c43
commit
a72777d043
15 changed files with 22 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -219,7 +219,7 @@ kitGive=\u00a76Giving kit\u00a7c {0}\u00a76.
|
||||||
kitGiveTo=\u00a76Giving kit\u00a7c {0}\u00a76 to {1}\u00a7.
|
kitGiveTo=\u00a76Giving kit\u00a7c {0}\u00a76 to {1}\u00a7.
|
||||||
kitInvFull=\u00a74Your inventory was full, placing kit on the floor.
|
kitInvFull=\u00a74Your inventory was full, placing kit on the floor.
|
||||||
kitOnce=\u00a74You can't use that kit again.
|
kitOnce=\u00a74You can't use that kit again.
|
||||||
kitReceive=\u00a76Received kit\u00a7c {0}\u00a76.
|
kitReceive=\u00a76Received kit\u00a7c {0}\u00a76.
|
||||||
kitTimed=\u00a74You can''t use that kit again for another\u00a7c {0}\u00a74.
|
kitTimed=\u00a74You can''t use that kit again for another\u00a7c {0}\u00a74.
|
||||||
kits=\u00a76Kits:\u00a7r {0}
|
kits=\u00a76Kits:\u00a7r {0}
|
||||||
leatherSyntax=\u00a76Leather Color Syntax: color:<red>,<green>,<blue> eg: color:255,0,0.
|
leatherSyntax=\u00a76Leather Color Syntax: color:<red>,<green>,<blue> eg: color:255,0,0.
|
||||||
|
@ -228,7 +228,7 @@ lightningUse=\u00a76Smiting\u00a7c {0}
|
||||||
listAfkTag= \u00a77[AFK]\u00a7r
|
listAfkTag= \u00a77[AFK]\u00a7r
|
||||||
listAmount= \u00a76There are \u00a7c{0}\u00a76 out of maximum \u00a7c{1}\u00a76 players online.
|
listAmount= \u00a76There are \u00a7c{0}\u00a76 out of maximum \u00a7c{1}\u00a76 players online.
|
||||||
listAmountHidden= \u00a76There are \u00a7c{0}\u00a76/{1}\u00a76 out of maximum \u00a7c{2}\u00a76 players online.
|
listAmountHidden= \u00a76There are \u00a7c{0}\u00a76/{1}\u00a76 out of maximum \u00a7c{2}\u00a76 players online.
|
||||||
listGroupTag={0}\u00a7r:
|
listGroupTag={0}\u00a7r:
|
||||||
listHiddenTag= \u00a77[HIDDEN]\u00a7r
|
listHiddenTag= \u00a77[HIDDEN]\u00a7r
|
||||||
loadWarpError=\u00a74Failed to load warp {0}.
|
loadWarpError=\u00a74Failed to load warp {0}.
|
||||||
localFormat=[L]<{0}> {1}
|
localFormat=[L]<{0}> {1}
|
||||||
|
@ -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
|
||||||
|
|
|
@ -219,7 +219,7 @@ kitGive=\u00a76Kitul\u00a7c {0}\u00a76.
|
||||||
kitGiveTo=\u00a76Ai dat kitul\u00a7c {0}\u00a76 lui {1}\u00a7.
|
kitGiveTo=\u00a76Ai dat kitul\u00a7c {0}\u00a76 lui {1}\u00a7.
|
||||||
kitInvFull=\u00a74Inventarul tau este plin, kitul este aruncat jos.
|
kitInvFull=\u00a74Inventarul tau este plin, kitul este aruncat jos.
|
||||||
kitOnce=\u00a74Nu poti folosi acest kit din nou.
|
kitOnce=\u00a74Nu poti folosi acest kit din nou.
|
||||||
kitReceive=\u00a76Ai primit kitul\u00a7c {0}\u00a76.
|
kitReceive=\u00a76Ai primit kitul\u00a7c {0}\u00a76.
|
||||||
kitTimed=\u00a74Nu poti folosit acest kit inca\u00a7c {0}\u00a74.
|
kitTimed=\u00a74Nu poti folosit acest kit inca\u00a7c {0}\u00a74.
|
||||||
kits=\u00a76Kituri:\u00a7r {0}
|
kits=\u00a76Kituri:\u00a7r {0}
|
||||||
leatherSyntax=\u00a76Sintaxa culorilor la piele: color:<red>,<green>,<blue> ex: color:255,0,0.
|
leatherSyntax=\u00a76Sintaxa culorilor la piele: color:<red>,<green>,<blue> ex: color:255,0,0.
|
||||||
|
@ -228,7 +228,7 @@ lightningUse=\u00a76L-ai fulgerat pe\u00a7c {0}
|
||||||
listAfkTag= \u00a77[AFK]\u00a7r
|
listAfkTag= \u00a77[AFK]\u00a7r
|
||||||
listAmount= \u00a76Sunt \u00a7c{0}\u00a76 din maxim \u00a7c{1}\u00a76 jucatori online.
|
listAmount= \u00a76Sunt \u00a7c{0}\u00a76 din maxim \u00a7c{1}\u00a76 jucatori online.
|
||||||
listAmountHidden= \u00a76Sunt \u00a7c{0}\u00a76/{1}\u00a76 din maxim \u00a7c{2}\u00a76 jucatori online.
|
listAmountHidden= \u00a76Sunt \u00a7c{0}\u00a76/{1}\u00a76 din maxim \u00a7c{2}\u00a76 jucatori online.
|
||||||
listGroupTag={0}\u00a7r:
|
listGroupTag={0}\u00a7r:
|
||||||
listHiddenTag= \u00a77[Ascuns]\u00a7r
|
listHiddenTag= \u00a77[Ascuns]\u00a7r
|
||||||
loadWarpError=\u00a74Incarcarea teleportarii a esuat {0}.
|
loadWarpError=\u00a74Incarcarea teleportarii a esuat {0}.
|
||||||
localFormat=[L]<{0}> {1}
|
localFormat=[L]<{0}> {1}
|
||||||
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue