remove debugger
This commit is contained in:
parent
16c0a8a81b
commit
9eb4df5ceb
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user