Del all files
This commit is contained in:
@@ -1,34 +0,0 @@
|
||||
package fr.xephi.authme.util;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/**
|
||||
* Player utilities.
|
||||
*/
|
||||
public final class PlayerUtils {
|
||||
|
||||
// Utility class
|
||||
private PlayerUtils() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the IP of the given player.
|
||||
*
|
||||
* @param player The player to return the IP address for
|
||||
* @return The player's IP address
|
||||
*/
|
||||
public static String getPlayerIp(Player player) {
|
||||
return player.getAddress().getAddress().getHostAddress();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if the player is an NPC or not.
|
||||
*
|
||||
* @param player The player to check
|
||||
* @return True if the player is an NPC, false otherwise
|
||||
*/
|
||||
public static boolean isNpc(Player player) {
|
||||
return player.hasMetadata("NPC");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user