|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cliffblaster.game.api.PluginManager
public class PluginManager
PluginManager for the entire server. Loads, unloads, destroys, and registers events for plug-ins.
Nested Class Summary | |
---|---|
static class |
PluginManager.Status
|
Field Summary | |
---|---|
static float |
API_VERSION
|
Constructor Summary | |
---|---|
PluginManager(CliffBlasterServer server)
|
Method Summary | |
---|---|
void |
destroyPlugins()
|
boolean |
dispatchEvent(Event evt)
Dispatch an event. |
JavaPlugin |
getPlugin(java.lang.String name)
Returns the desired plug-in by name if it exists, or null if it doesn't |
java.io.File |
getPluginDirectory()
|
java.lang.String |
getPluginName(JavaPlugin plugin)
Returns the plug-in's name if it exists, or null if it doesn't |
java.util.List<java.lang.String> |
getPlugins()
|
Server |
getServer()
Returns the server instance |
boolean |
isAlphaNumeric(java.lang.String s)
|
void |
loadPlugins()
|
RegisteredEvent |
registerEvent(Event.Type type,
EventListener listener,
JavaPlugin plugin,
Event.Priority priority)
Registers an event that the plug-in will listen to and returns a RegisteredEvent object. |
void |
reload()
Reloads all plug-ins when called. |
PermissionRequestEvent |
requestPermission(ServerHandler caller,
java.lang.String permission)
|
boolean |
unload(JavaPlugin plugin)
Unloads and destroys specified plug-in |
void |
unregisterEvent(RegisteredEvent event)
Unregisters a RegisteredEvent from the event list and returns true if event was registered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float API_VERSION
Constructor Detail |
---|
public PluginManager(CliffBlasterServer server)
Method Detail |
---|
public boolean isAlphaNumeric(java.lang.String s)
public boolean unload(JavaPlugin plugin)
public void reload()
public RegisteredEvent registerEvent(Event.Type type, EventListener listener, JavaPlugin plugin, Event.Priority priority)
RegisteredEvent
object.
Priorities are the order in which an event will be called upon occurring.
public void unregisterEvent(RegisteredEvent event)
RegisteredEvent
from the event list and returns true if event was registered.
public boolean dispatchEvent(Event evt)
evt
-
public Server getServer()
public JavaPlugin getPlugin(java.lang.String name)
public java.lang.String getPluginName(JavaPlugin plugin)
public void destroyPlugins()
public void loadPlugins()
public java.util.List<java.lang.String> getPlugins()
public java.io.File getPluginDirectory()
public PermissionRequestEvent requestPermission(ServerHandler caller, java.lang.String permission)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |