mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-26 08:29:44 +00:00
Check the player we are bringing has permission to enter the world vs the initiating user
This commit is contained in:
parent
7b94adfac8
commit
ab7a19b6e6
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ public class Commandtphere extends EssentialsCommand
|
|||
throw new Exception(_("teleportDisabled", player.getDisplayName()));
|
||||
}
|
||||
if (user.getWorld() != player.getWorld() && ess.getSettings().isWorldTeleportPermissions()
|
||||
&& !user.isAuthorized("essentials.world." + user.getWorld().getName()))
|
||||
&& !player.isAuthorized("essentials.world." + user.getWorld().getName()))
|
||||
{
|
||||
throw new Exception(_("noPerm", "essentials.world." + user.getWorld().getName()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue