mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 12:33:03 +00:00
Separate toggle for world teleports using homes.
This commit is contained in:
parent
fa58503c9f
commit
74f0babc7d
4 changed files with 15 additions and 2 deletions
|
@ -101,7 +101,7 @@ public class Commandhome extends EssentialsCommand
|
|||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
if (user.getWorld() != loc.getWorld() && ess.getSettings().isWorldTeleportPermissions()
|
||||
if (user.getWorld() != loc.getWorld() && ess.getSettings().isWorldHomePermissions()
|
||||
&& !user.isAuthorized("essentials.world." + loc.getWorld().getName()))
|
||||
{
|
||||
throw new Exception(_("noPerm", "essentials.world." + loc.getWorld().getName()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue