Package me.clientastisch.extension
Class Extension
- java.lang.Object
-
- me.clientastisch.extension.Extension
-
public class Extension extends java.lang.Object
- Since:
- CAC v. 0.9945
- Author:
- Clientastisch
-
-
Constructor Summary
Constructors Constructor Description Extension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AddonInfo>
getAddons()
Get a list of all loaded addonsboolean
isLoaded(java.lang.String addon)
Check if a addon is loadedstatic void
registerCommand(Addon addon, Command command)
static void
registerDialect(Addon addon, PunishDialect dialect)
static void
registerDialect(Addon addon, ViolationDialect dialect)
static void
registerListener(Addon addon, EventListener listener)
static void
registerListener(Addon addon, org.bukkit.event.Listener listener)
static void
unregisterCommand(Addon addon, Command command)
static void
unregisterDialect(Addon addon, PunishDialect dialect)
static void
unregisterDialect(Addon addon, ViolationDialect dialect)
static void
unregisterListener(Addon addon, EventListener listener)
static void
unregisterListener(Addon addon, org.bukkit.event.Listener listener)
-
-
-
Method Detail
-
registerListener
public static void registerListener(Addon addon, EventListener listener)
- Parameters:
addon
- Main-class of the extensionlistener
- Anticheat event listener
-
registerListener
public static void registerListener(Addon addon, org.bukkit.event.Listener listener)
- Parameters:
addon
- Main-class of the extensionlistener
- Bukkit event listener
-
unregisterListener
public static void unregisterListener(Addon addon, EventListener listener)
- Parameters:
addon
- Main-class of the extensionlistener
- Anticheat event listener
-
unregisterListener
public static void unregisterListener(Addon addon, org.bukkit.event.Listener listener)
- Parameters:
addon
- Main-class of the extensionlistener
- Bukkit event listener
-
registerCommand
public static void registerCommand(Addon addon, Command command)
- Parameters:
addon
- Main-class of the extensioncommand
- Command listener
-
unregisterCommand
public static void unregisterCommand(Addon addon, Command command)
- Parameters:
addon
- Main-class of the extensioncommand
- Command listener
-
registerDialect
public static void registerDialect(Addon addon, PunishDialect dialect)
- Parameters:
addon
- Main-class of the extensiondialect
- Database dialect
-
unregisterDialect
public static void unregisterDialect(Addon addon, PunishDialect dialect)
- Parameters:
addon
- Main-class of the extensiondialect
- Database dialect
-
registerDialect
public static void registerDialect(Addon addon, ViolationDialect dialect)
- Parameters:
addon
- Main-class of the extensiondialect
- Database dialect
-
unregisterDialect
public static void unregisterDialect(Addon addon, ViolationDialect dialect)
- Parameters:
addon
- Main-class of the extensiondialect
- Database dialect
-
getAddons
public java.util.List<AddonInfo> getAddons()
Get a list of all loaded addons- Returns:
- List of loaded addons
-
isLoaded
public boolean isLoaded(java.lang.String addon)
Check if a addon is loaded- Parameters:
addon
- Name of the addon- Returns:
- whether the addon is loaded
-
-