1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-15 02:59:06 +02:00

Allow ignore to block tpahere requests.

This commit is contained in:
KHobbits
2013-11-09 04:08:25 +00:00
parent d720911128
commit a9e62516bc

View File

@@ -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()));
}
}