Ignore list and no tpa to self. Fixes ESS-4456 ESS-4711

List users that you ignore when no arguments are given. Otherwise state
that no players are ignored.

Don't allow users to tpa or tpahere themself. This is a problem with
people "glitching" with how essentials finds a safe location to get
inside of places they shouldn't.
This commit is contained in:
drtshock 2013-09-23 11:23:21 -05:00 committed by KHobbits
parent 99c73f3d67
commit f7f7c2a68b
21 changed files with 55 additions and 2 deletions

View file

@ -21,6 +21,10 @@ public class Commandtpa extends EssentialsCommand
}
User player = getPlayer(server, user, args, 0);
if (user.getName().equalsIgnoreCase(player.getName()))
{
throw new NotEnoughArgumentsException();
}
if (!player.isTeleportEnabled())
{
throw new Exception(_("teleportDisabled", player.getDisplayName()));