mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-23 22:14:09 +00:00
Fix: No cooldown for all /tpo commands
TP-Delay: Player can move around roughly in the 9 blocks surrounding them.
This commit is contained in:
parent
914a44007d
commit
335c9f37ab
5 changed files with 17 additions and 13 deletions
|
@ -44,7 +44,7 @@ public class Commandtp extends EssentialsCommand
|
|||
charge(user);
|
||||
User target = getPlayer(server, args, 0);
|
||||
User toPlayer = getPlayer(server, args, 1);
|
||||
target.getTeleport().now(toPlayer);
|
||||
target.getTeleport().now(toPlayer, false);
|
||||
target.sendMessage(Util.format("teleportAtoB", user.getDisplayName(), toPlayer.getDisplayName()));
|
||||
break;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ public class Commandtp extends EssentialsCommand
|
|||
sender.sendMessage(Util.i18n("teleporting"));
|
||||
User target = getPlayer(server, args, 0);
|
||||
User toPlayer = getPlayer(server, args, 1);
|
||||
target.getTeleport().now(toPlayer);
|
||||
target.getTeleport().now(toPlayer, false);
|
||||
target.sendMessage(Util.format("teleportAtoB", Console.NAME, toPlayer.getDisplayName()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue