mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Allow ignore to block tpahere requests.
This commit is contained in:
parent
7f8d62be02
commit
5d1ea4aa88
1 changed files with 9 additions and 6 deletions
|
@ -34,6 +34,8 @@ public class Commandtpahere extends EssentialsCommand
|
|||
{
|
||||
throw new Exception(_("noPerm", "essentials.worlds." + user.getWorld().getName()));
|
||||
}
|
||||
if (!player.isIgnoredPlayer(user))
|
||||
{
|
||||
player.requestTeleport(user, true);
|
||||
player.sendMessage(_("teleportHereRequest", user.getDisplayName()));
|
||||
player.sendMessage(_("typeTpaccept"));
|
||||
|
@ -42,6 +44,7 @@ public class Commandtpahere extends EssentialsCommand
|
|||
{
|
||||
player.sendMessage(_("teleportRequestTimeoutInfo", ess.getSettings().getTpaAcceptCancellation()));
|
||||
}
|
||||
}
|
||||
user.sendMessage(_("requestSent", player.getDisplayName()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue