Package de.sbg.unity.configmanager
Klasse ConfigManager
java.lang.Object
net.risingworld.api.Plugin
de.sbg.unity.configmanager.ConfigManager
public class ConfigManager
extends net.risingworld.api.Plugin
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetLoadedConfig
(String pluginName) Get the Config of the Plugin (ONLY USING IF CONFIG IS ALREADY LOADED)Create new ConfigData Object (This Methode create only the ConfigData-Object, not the File)Create new ConfigData Object (This Methode create only the ConfigData-Object, not the File)Create new ConfigData Object (This Methode create only the ConfigData-Object, not the File)void
void
onEnable()
Von Klasse geerbte Methoden net.risingworld.api.Plugin
enqueue, executeDelayed, getAllPlugins, getDescription, getGameVersion, getID, getMySQLConnection, getName, getPath, getPluginByID, getPluginByName, getSQLiteConnection, getWorldDatabase, onLoad, registerEventListener, sendHttpRequest, sendHttpRequest, triggerEvent, unregisterEventListener
-
Konstruktordetails
-
ConfigManager
public ConfigManager()
-
-
Methodendetails
-
onEnable
public void onEnable()- Angegeben von:
onEnable
in Klassenet.risingworld.api.Plugin
-
onDisable
public void onDisable()- Angegeben von:
onDisable
in Klassenet.risingworld.api.Plugin
-
newConfig
Create new ConfigData Object (This Methode create only the ConfigData-Object, not the File)- Parameter:
pluginName
- - The name of the plugin;Path
- - The Path of the Config- Gibt zurück:
- The new ConfigData-Object
- Löst aus:
IOException
-
newConfig
Create new ConfigData Object (This Methode create only the ConfigData-Object, not the File)- Parameter:
pluginName
- - The name of the plugin;Path
- - The Path of the Configname
- - The name of the Config-File- Gibt zurück:
- The new ConfigData-Object
- Löst aus:
IOException
-
newConfig
public ConfigData newConfig(String pluginName, String Path, String name, String extention) throws IOException Create new ConfigData Object (This Methode create only the ConfigData-Object, not the File)- Parameter:
pluginName
- - The name of the plugin;Path
- - The Path of the Configname
- - The name of the Config-Fileextention
- The extention of the Config-File (.config, .properties)- Gibt zurück:
- The new ConfigData-Object
- Löst aus:
IOException
-
getLoadedConfig
Get the Config of the Plugin (ONLY USING IF CONFIG IS ALREADY LOADED)- Parameter:
pluginName
- The name of the plugin as String- Gibt zurück:
- Loaded Config as ConfigData
-