mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-10-02 06:44:39 +00:00
Check the player we are bringing has permission to enter the world vs the initiating user the final frontier
This commit is contained in:
parent
2fbdf7e4d6
commit
a1ac58d17c
|
@ -58,7 +58,7 @@ public class Commandtp extends EssentialsCommand
|
|||
throw new Exception(_("teleportDisabled", toPlayer.getDisplayName()));
|
||||
}
|
||||
if (target.getWorld() != toPlayer.getWorld() && ess.getSettings().isWorldTeleportPermissions()
|
||||
&& !player.isAuthorized("essentials.world." + toPlayer.getWorld().getName()))
|
||||
&& !target.isAuthorized("essentials.world." + toPlayer.getWorld().getName()))
|
||||
{
|
||||
throw new Exception(_("noPerm", "essentials.world." + toPlayer.getWorld().getName()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue