mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-06 07:41:17 +00:00
Check the player we are bringing has permission to enter the world vs the initiating user part 4
This commit is contained in:
parent
1d92cb0e0a
commit
d5ed474be7
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ public class Commandtp extends EssentialsCommand
|
|||
throw new Exception(_("teleportDisabled", toPlayer.getDisplayName()));
|
||||
}
|
||||
if (target.getWorld() != toPlayer.getWorld() && ess.getSettings().isWorldTeleportPermissions()
|
||||
&& !user.isAuthorized("essentials.world." + toPlayer.getWorld().getName()))
|
||||
&& !player.isAuthorized("essentials.world." + toPlayer.getWorld().getName()))
|
||||
{
|
||||
throw new Exception(_("noPerm", "essentials.world." + toPlayer.getWorld().getName()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue