mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 12:33:03 +00:00
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:
parent
99c73f3d67
commit
f7f7c2a68b
21 changed files with 55 additions and 2 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue