mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-27 07:52:06 +00:00
Catch TeleportClause.COMMAND in the teleport listener.
Changed Teleport methods to pass a TeleportClause param
This commit is contained in:
parent
854fc05c5b
commit
10597cec2f
19 changed files with 69 additions and 49 deletions
|
@ -5,6 +5,7 @@ import com.earth2me.essentials.User;
|
|||
import org.bukkit.Server;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
||||
|
||||
|
||||
public class Commandtpall extends EssentialsCommand
|
||||
|
@ -43,7 +44,7 @@ public class Commandtpall extends EssentialsCommand
|
|||
}
|
||||
try
|
||||
{
|
||||
player.getTeleport().now(user, false);
|
||||
player.getTeleport().now(user, false, TeleportCause.COMMAND);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue