|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.jacklin213.lincore.utils.DataStorage
public class DataStorage
DataStorage class, Contains basic variables and methods to set them. To add extra variables create a local class and extend DataStorage.
Make sure to use the setVariables methods afterwards to store them in this class.
| Constructor Summary | |
|---|---|
DataStorage(Plugin instance,
PluginDescriptionFile pdfFile)
DataStorage constructor for LinPlugin series. |
|
| Method Summary | |
|---|---|
void |
addVariable(String key,
String value)
Adds a variable to the local HashMap. |
boolean |
contains(String key)
Checks to see if the local HashMap contains a variable. |
String |
getVaribale(String variable)
Accesses the private HashMap: variables and gets the variable value. |
void |
removeVariable(String key)
Removes variable from the local HashMap. |
void |
setAuthor(String author)
Sets the author variable. |
void |
setChatPluginName(String chatPluginName)
Sets the chatPluginName with color and formatting. |
void |
setDescription(String description)
Sets the description. |
void |
setInvalidCommand(String invalidCommand)
Sets the invalidCommand message. |
void |
setInvalidNumber(String invalidNumber)
Sets the invalidNumber message. |
void |
setInvalidPlayer(String invalidPlayer)
Sets the invalidPlayer message |
void |
setPDFVariables()
Set the Name, Version, Description Variables from the PluginDescriptionFile |
void |
setPermMessage(String permMessage)
Sets the permMessage. |
void |
setPlayerOnly(String playerOnly)
Sets the playerOnly message. |
void |
setPluginDescriptionFile()
Sets the PluginDescriptionFile(Does not need to be used, DataStorage constructor already does this). |
void |
setPluginName(String pluginName)
Sets the plain pluginName, stripped of color/formatting. |
void |
setVariables()
SetVariables method - Runs the setPDFVariables method, Clears the local variable HashMap and stores all the new variables inside |
void |
setVersion(String version)
Sets the version. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataStorage(Plugin instance,
PluginDescriptionFile pdfFile)
setVariables method.
instance - pdfFile - | Method Detail |
|---|
public String getVaribale(String variable)
variable - Key/Variable name
public void addVariable(String key,
String value)
key - Variable namevalue - Variable valuepublic void removeVariable(String key)
key - Variable namepublic boolean contains(String key)
key - Varible name
public void setAuthor(String author)
author - String grabbed from the PluginDescriptionFilepublic void setChatPluginName(String chatPluginName)
chatPluginName - Formatted pluginNamepublic void setDescription(String description)
description - String grabbed from the PluginDescriptionFilepublic void setPluginName(String pluginName)
pluginName - String grabbed from the PluginDescriptionFilepublic void setVersion(String version)
version - String grabbed from the PluginDescriptionFilepublic void setInvalidCommand(String invalidCommand)
invalidCommand - Formatted invalidCommand messagepublic void setInvalidNumber(String invalidNumber)
invalidNumber - Formatted invalidNumber messagepublic void setInvalidPlayer(String invalidPlayer)
invalidPlayer - Formatted invalidPlayer messagepublic void setPlayerOnly(String playerOnly)
playerOnly - Formatted playerOnly messagepublic void setPluginDescriptionFile()
DataStorage constructor already does this).
public void setPermMessage(String permMessage)
permMessage - Formatted permMessagepublic void setPDFVariables()
PluginDescriptionFile
public void setVariables()
setPDFVariables method, Clears the local variable HashMap and stores all the new variables inside
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||