mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Move the per world permissions:
essentials.world.worldname is moved to essentials.worlds.worldname
This commit is contained in:
parent
78a580bc40
commit
f9659dae68
13 changed files with 28 additions and 28 deletions
|
@ -26,9 +26,9 @@ public class Commandtpa extends EssentialsCommand
|
|||
throw new Exception(_("teleportDisabled", player.getDisplayName()));
|
||||
}
|
||||
if (user.getWorld() != player.getWorld() && ess.getSettings().isWorldTeleportPermissions()
|
||||
&& !user.isAuthorized("essentials.world." + player.getWorld().getName()))
|
||||
&& !user.isAuthorized("essentials.worlds." + player.getWorld().getName()))
|
||||
{
|
||||
throw new Exception(_("noPerm", "essentials.world." + player.getWorld().getName()));
|
||||
throw new Exception(_("noPerm", "essentials.worlds." + player.getWorld().getName()));
|
||||
}
|
||||
if (!player.isIgnoredPlayer(user))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue