|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectetc
public class etc extends java.lang.Object
etc.java - My catch-all class for a bunch of shit. If there's something you need it's probably in here.
Modifier and Type | Method and Description |
---|---|
void |
addCommand(java.lang.String command,
java.lang.String description)
Adds command to the /help list |
PluginLoader.HookResult |
autoHeal()
Returns the status of auto-heal. |
boolean |
canSaveHomes()
Returns true if the server is saving homes |
void |
changeHome(Warp home)
Adds or modifies the home. |
static java.lang.String |
combineSplit(int startIndex,
java.lang.String[] string,
java.lang.String seperator)
Combines the string array into a string at the specified start with the separator separating each string. |
java.util.Set<java.lang.Integer> |
getAllowedItems()
Returns a list of allowed items for /item |
java.lang.String[] |
getAnimals()
Returns a list of animals that are allowed to spawn naturally |
java.util.LinkedHashMap<java.lang.String,java.lang.String> |
getCommands()
Returns the list of commands |
static java.lang.String |
getCompassPointForDirection(double degrees)
Returns compass direction according to your rotation |
static DataSource |
getDataSource()
Returns the data source |
Group |
getDefaultGroup()
Returns the default group |
java.util.Set<java.lang.Integer> |
getDisallowedItems()
Returns a list of disallowed items for /item |
java.lang.String |
getGroupLocation()
Returns the location of groups.txt |
java.lang.String |
getHomeLocation()
Returns the location of homes.txt |
static etc |
getInstance()
Returns the instance |
java.lang.String |
getItemLocation()
Returns the location of items.txt |
java.util.Set<java.lang.Integer> |
getItemSpawnBlacklist()
Returns list of banned blocks |
java.lang.String |
getKitsLocation()
Returns the location of kits.txt |
static PluginLoader |
getLoader()
Returns the plugin loader |
static net.minecraft.server.MinecraftServer |
getMCServer()
Returns the minecraft server |
int |
getMobSpawnRate()
Returns the % from 0 to 100 that a mob or animal will spawn |
java.lang.String[] |
getMonsters()
Returns a list of mobs that are allowed to spawn naturally |
java.lang.String[] |
getMotd()
Returns the MOTD. |
int |
getPlayerLimit()
Returns the player limit |
java.lang.String |
getReservelistLocation()
Returns the location of reservelist.txt |
static Server |
getServer()
Returns the minecraft server interface |
DataSource |
getSource()
Returns the data source |
int |
getSpawnProtectionSize()
Returns the spawn protection size |
static java.sql.Connection |
getSQLConnection()
Returns a SQL connection |
boolean |
getTainted()
Return whether this build is "tainted" |
java.lang.String |
getUsersLocation()
Returns the location of users.txt |
int |
getVersion()
Return the current build of the mod |
java.lang.String |
getVersionStr()
Return the specified string version of the build |
java.lang.String |
getWarpLocation()
Returns the location of warps.txt |
java.lang.String |
getWhitelistLocation()
Returns the location of whitelist.txt |
java.lang.String |
getWhitelistMessage()
Returns the message the kick will show if a player isn't on the whitelist |
boolean |
isHealthEnabled()
Returns true if we want health to be enabled. |
boolean |
isLogging()
Returns true if we're logging commands and such |
boolean |
isOnItemBlacklist(int id)
Returns true if the item is on the blacklist |
boolean |
isWhitelistEnabled()
Returns true if the whitelist is enabled |
void |
load()
Loads or reloads the mod |
void |
loadData()
Loads or reloads the data source |
boolean |
parseConsoleCommand(java.lang.String command,
net.minecraft.server.MinecraftServer server)
Parses a console command |
void |
removeCommand(java.lang.String command)
Removes command from /help list |
void |
setAllowedItems(int[] allowedItems)
Sets the list of allowed items |
void |
setAnimals(java.lang.String[] animals)
Sets a list of animals that are allowed to spawn naturally |
void |
setDisallowedItems(int[] disallowedItems)
Sets the list of disallowed items |
void |
setGroupLocation(java.lang.String groupLoc)
Sets the location of groups.txt |
void |
setHomeLocation(java.lang.String homeLoc)
Sets the location of homes.txt |
void |
setItemLocation(java.lang.String itemLoc)
Sets the location of items.txt |
void |
setItemSpawnBlacklist(int[] itemSpawnBlacklist)
Sets the item spawn blacklist |
void |
setKitsLocation(java.lang.String kitsLoc)
Sets the location of kits.txt |
void |
setLogging(boolean logging)
If set to true the server will log all commands used. |
void |
setMobSpawnRate(int rate)
Sets the % from 0 to 100 that a mob or animal will spawn |
void |
setMonsters(java.lang.String[] monsters)
Sets a list of mobs that are allowed to spawn naturally |
void |
setMotd(java.lang.String[] motd)
Set the MOTD |
void |
setPlayerLimit(int playerLimit)
Set the player limit |
void |
setReservelistLocation(java.lang.String reservelistLoc)
Set the location of reservelist.txt |
void |
setSaveHomes(boolean saveHomes)
If true the server will save homes. |
static void |
setServer(net.minecraft.server.MinecraftServer s)
Sets the server to be used. |
void |
setShowUnknownCommand(boolean showUnknownCommand)
Sets whether or not to show "Unknown command" to players. |
void |
setSpawnProtectionSize(int spawnProtectionSize)
Set the spawn protection size (def: 16) |
void |
setUsersLocation(java.lang.String usersLoc)
Sets the location of users.txt |
void |
setWarp(Warp warp)
Adds or modifies the warp |
void |
setWarpLocation(java.lang.String warpLoc)
Sets the location of warps.txt |
void |
setWhitelistEnabled(boolean whitelistEnabled)
If true the whitelist is enabled |
void |
setWhitelistLocation(java.lang.String whitelistLoc)
Sets the location of whitelist.txt |
void |
setWhitelistMessage(java.lang.String whitelistMessage)
Sets the whitelist message to show when it kicks someone |
boolean |
showUnknownCommand()
Returns true if "Unknown command" is shown to a player when they enter an unknown command (For wrappers and such) |
boolean |
toggleWhitelist()
Toggles the whitelist (doesn't persist) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final void load()
public void loadData()
public static etc getInstance()
public static void setServer(net.minecraft.server.MinecraftServer s)
s
- public static net.minecraft.server.MinecraftServer getMCServer()
public static DataSource getDataSource()
public static Server getServer()
public static PluginLoader getLoader()
public Group getDefaultGroup()
public void changeHome(Warp home)
home
- public void setWarp(Warp warp)
warp
- public boolean isOnItemBlacklist(int id)
id
- public DataSource getSource()
public boolean isLogging()
public boolean isHealthEnabled()
public PluginLoader.HookResult autoHeal()
public void addCommand(java.lang.String command, java.lang.String description)
command
- description
- public void removeCommand(java.lang.String command)
command
- public boolean toggleWhitelist()
public boolean parseConsoleCommand(java.lang.String command, net.minecraft.server.MinecraftServer server)
command
- server
- public static java.lang.String getCompassPointForDirection(double degrees)
degrees
- public static java.lang.String combineSplit(int startIndex, java.lang.String[] string, java.lang.String seperator)
startIndex
- string
- seperator
- public java.util.Set<java.lang.Integer> getAllowedItems()
public java.util.LinkedHashMap<java.lang.String,java.lang.String> getCommands()
public java.util.Set<java.lang.Integer> getDisallowedItems()
public java.lang.String getGroupLocation()
public java.lang.String getHomeLocation()
public java.lang.String getItemLocation()
public java.util.Set<java.lang.Integer> getItemSpawnBlacklist()
public java.lang.String getKitsLocation()
public java.lang.String[] getMotd()
public int getPlayerLimit()
public java.lang.String getReservelistLocation()
public boolean canSaveHomes()
public int getSpawnProtectionSize()
public java.lang.String getUsersLocation()
public java.lang.String getWarpLocation()
public boolean isWhitelistEnabled()
public java.lang.String getWhitelistLocation()
public java.lang.String getWhitelistMessage()
public void setAllowedItems(int[] allowedItems)
allowedItems
- public void setDisallowedItems(int[] disallowedItems)
disallowedItems
- public void setGroupLocation(java.lang.String groupLoc)
groupLoc
- public void setHomeLocation(java.lang.String homeLoc)
homeLoc
- public void setItemLocation(java.lang.String itemLoc)
itemLoc
- public void setItemSpawnBlacklist(int[] itemSpawnBlacklist)
itemSpawnBlacklist
- public void setKitsLocation(java.lang.String kitsLoc)
kitsLoc
- public void setLogging(boolean logging)
logging
- public void setMotd(java.lang.String[] motd)
motd
- public void setPlayerLimit(int playerLimit)
playerLimit
- public void setReservelistLocation(java.lang.String reservelistLoc)
reservelistLoc
- public void setSaveHomes(boolean saveHomes)
saveHomes
- public void setSpawnProtectionSize(int spawnProtectionSize)
spawnProtectionSize
- public void setUsersLocation(java.lang.String usersLoc)
usersLoc
- public void setWarpLocation(java.lang.String warpLoc)
warpLoc
- public void setWhitelistEnabled(boolean whitelistEnabled)
whitelistEnabled
- public void setWhitelistLocation(java.lang.String whitelistLoc)
whitelistLoc
- public void setWhitelistMessage(java.lang.String whitelistMessage)
whitelistMessage
- public boolean showUnknownCommand()
public void setShowUnknownCommand(boolean showUnknownCommand)
showUnknownCommand
- whether or not to show itpublic int getVersion()
public boolean getTainted()
public java.lang.String getVersionStr()
public java.lang.String[] getAnimals()
public void setAnimals(java.lang.String[] animals)
animals
- a list of animalspublic java.lang.String[] getMonsters()
public void setMonsters(java.lang.String[] monsters)
monsters
- a list of mobspublic int getMobSpawnRate()
public void setMobSpawnRate(int rate)
rate
- a percentage from 0 to 100public static java.sql.Connection getSQLConnection()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |