Package org.galliumpowered
Class Gallium
java.lang.Object
org.galliumpowered.Gallium
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected File
protected File
protected Bridge
protected CommandManager
protected Database
protected EventDispatcher
protected EventManager
protected File
protected GroupManager
protected static Gallium
protected File
protected PermissionManager
protected File
protected PluginManager
protected File
protected Server
protected File
protected File
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
Get banned IPS filestatic File
Get banned players filestatic Bridge
Get the NMS bridgestatic CommandManager
Get command managerstatic File
static Database
Get the databasestatic File
Get server.propertiesstatic EventDispatcher
Get event dispatcherstatic EventManager
Get event managerstatic GroupManager
Get the group managerstatic File
Get ops filestatic PermissionManager
Get permission managerstatic File
Get the plugins config directorystatic PluginManager
Get plugin managerstatic File
Get the server plugins directorystatic Server
Get serverstatic String
Get gallium API versionstatic File
Get whitelist filestatic void
Enable the plugins Ensures that plugins aren't already loadedstatic void
mkdirs()
FOR INTERNAL USE ONLY Make config and data directoriesstatic void
FOR INTERNAL USE ONLY Rename default Minecraft config files to the place Gallium stores themstatic void
setGallium
(Gallium gallium) FOR INTERNAL USE ONLY Set instancestatic void
FOR INTERNAL USE ONLY Set server
-
Field Details
-
instance
-
database
-
commandManager
-
permissionManager
-
groupManager
-
pluginManager
-
eventManager
-
eventDispatcher
-
bridge
-
galliumConfig
-
serverProperties
-
opListFile
-
whitelistFile
-
bannedIPsFile
-
bannedPlayersFile
-
pluginsDirectory
-
pluginConfigDirectory
-
server
-
-
Constructor Details
-
Gallium
public Gallium()
-
-
Method Details
-
getDatabase
Get the database- Returns:
- Database
-
getServer
Get server- Returns:
- the server
-
getCommandManager
Get command manager- Returns:
- Command manager
-
getPermissionManager
Get permission manager- Returns:
- Permission manager
-
getGroupManager
Get the group manager- Returns:
- the group manager
-
getPluginManager
Get plugin manager -
getEventManager
Get event manager -
getEventDispatcher
Get event dispatcher -
getBridge
Get the NMS bridge- Returns:
- NMS bridge
-
getConfig
-
getDefaultProperties
Get server.properties -
getOpListFile
Get ops file -
getWhitelistFile
Get whitelist file -
getBannedIPsFile
Get banned IPS file -
getBannedPlayersFile
Get banned players file -
getPluginsDirectory
Get the server plugins directory -
getPluginConfigDirectory
Get the plugins config directory- Returns:
- Plugins config directory
-
setGallium
FOR INTERNAL USE ONLY Set instance- Parameters:
gallium
- instance
-
setServer
FOR INTERNAL USE ONLY Set server- Parameters:
server
- server
-
loadPlugins
public static void loadPlugins()Enable the plugins Ensures that plugins aren't already loaded -
getVersion
Get gallium API version- Returns:
- API version
-
mkdirs
public static void mkdirs()FOR INTERNAL USE ONLY Make config and data directories -
renameDefaultFiles
public static void renameDefaultFiles()FOR INTERNAL USE ONLY Rename default Minecraft config files to the place Gallium stores them
-