| Constructor and Description |
|---|
PluginUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
borderTest(org.bukkit.Location destination)
Checks if the the player is outside of the personal world border.
|
static void |
deleteFile(java.io.File file)
Delete file, or if path represents a directory, recursively
delete it's contents beforehand.
|
static void |
deleteWorld(java.lang.String player)
Delete a world that is matched to a player name.
|
static org.bukkit.entity.Player[] |
getOnlinePlayers()
Gets a Array of online players.
|
static org.bukkit.Chunk |
getPlayerChunk(java.lang.String name)
Get the chunk the player is in.
|
static boolean |
hasWorld(java.lang.String playerName)
Tests if the player has a personal world.
|
static void |
init(PersonalWorlds init)
Initiation of the static class.
|
static java.lang.Boolean |
isPlayerWorld(java.lang.String playerName)
Finds if a world name is a player owned world.
|
static boolean |
isWorldLoaded(java.lang.String playerName)
Checks if a world is loaded
|
static void |
kickPlayersOut(java.lang.String worldOwner,
boolean kickall,
java.lang.String kickMessage)
Kicks all the players to the main world spawn.
|
static org.bukkit.World |
loadWorld(java.lang.String playerName)
Loads a world from a player name.
|
static java.lang.String |
matchOfflinePlayer(java.lang.String name)
Matches an String to an off-line player
|
static java.lang.String |
matchPlayer(java.lang.String name)
Match a player with a player name you give
|
static org.bukkit.Location |
safeSpawnLoc(org.bukkit.Location spawnLocation)
Makes a safe spawn location.
|
static java.lang.String |
worldName(java.lang.String name)
Returns a String with path formating.
|
public static void init(PersonalWorlds init)
init - public static java.lang.String matchPlayer(java.lang.String name)
name - public static java.lang.String matchOfflinePlayer(java.lang.String name)
name - public static org.bukkit.Chunk getPlayerChunk(java.lang.String name)
name - must match a player, no error checking. Use public static org.bukkit.entity.Player[] getOnlinePlayers()
public static java.lang.String worldName(java.lang.String name)
name - public static java.lang.Boolean isPlayerWorld(java.lang.String playerName)
playerName - public static org.bukkit.Location safeSpawnLoc(org.bukkit.Location spawnLocation)
spawnLocation - public static boolean hasWorld(java.lang.String playerName)
playerName - public static boolean isWorldLoaded(java.lang.String playerName)
playerName - public static org.bukkit.World loadWorld(java.lang.String playerName)
playerName - public static boolean borderTest(org.bukkit.Location destination)
destination - public static void deleteWorld(java.lang.String player)
player - public static void kickPlayersOut(java.lang.String worldOwner,
boolean kickall,
java.lang.String kickMessage)
worldOwner - kickall - is for if you want to kick everyone, event the owner, out of the world.kickMessage - is the message players that are kicked are send after the kick.public static void deleteFile(java.io.File file)
file -