remove debugger

This commit is contained in:
HaHaWTH 2023-12-09 20:19:12 +08:00
parent 16c0a8a81b
commit 9eb4df5ceb

View File

@ -6,8 +6,6 @@ import org.bukkit.entity.Player;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import static org.bukkit.Bukkit.getLogger;
/**
* This class is a utility class for handling async teleportation of players in game.
*/
@ -36,14 +34,11 @@ public class TeleportUtils {
if (teleportAsyncMethod != null) {
try {
teleportAsyncMethod.invoke(player, location);
getLogger().info("Using async teleport method");
} catch (IllegalAccessException | InvocationTargetException e) {
player.teleport(location);
getLogger().info("Using legacy teleport method");
}
} else {
player.teleport(location);
getLogger().info("Using legacy teleport method");
}
}
}