diff options
Diffstat (limited to 'Essentials/src/net/ess3/commands/Commandtpohere.java')
-rw-r--r-- | Essentials/src/net/ess3/commands/Commandtpohere.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandtpohere.java b/Essentials/src/net/ess3/commands/Commandtpohere.java index fdadfe88d..b477cef55 100644 --- a/Essentials/src/net/ess3/commands/Commandtpohere.java +++ b/Essentials/src/net/ess3/commands/Commandtpohere.java @@ -27,6 +27,11 @@ public class Commandtpohere extends EssentialsCommand { throw new Exception(_("noPerm", "essentials.world." + user.getPlayer().getWorld().getName())); } + if (settings.getData().getGeneral().isPerGroupTeleport() && !Permissions.PERGROUPTELEPORT.isAuthorized( + user, ess.getRanks().getMainGroup(player))) + { + throw new Exception(_("noPerm", "essentials.teleport.groups." + ess.getRanks().getMainGroup(player))); + } // Verify permission |