Package com.djrapitops.plan
Class PlanNukkit
- java.lang.Object
-
- cn.nukkit.plugin.PluginBase
-
- com.djrapitops.plan.PlanNukkit
-
- All Implemented Interfaces:
cn.nukkit.command.CommandExecutor
,cn.nukkit.plugin.Plugin
,PlanPlugin
public class PlanNukkit extends cn.nukkit.plugin.PluginBase implements PlanPlugin
Main class for Nukkit that manages the plugin.
-
-
Constructor Summary
Constructors Constructor Description PlanNukkit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelAllTasks()
ColorScheme
getColorScheme()
PlanSystem
getSystem()
boolean
onCommand(cn.nukkit.command.CommandSender actualSender, cn.nukkit.command.Command actualCommand, java.lang.String label, java.lang.String[] args)
void
onDisable()
void
onEnable()
void
onLoad()
void
registerCommand(Subcommand command)
-
Methods inherited from class cn.nukkit.plugin.PluginBase
getCommand, getConfig, getDataFolder, getDescription, getFile, getFullName, getLogger, getName, getPluginLoader, getResource, getServer, init, isDisabled, isEnabled, isInitialized, reloadConfig, saveConfig, saveDefaultConfig, saveResource, saveResource, saveResource, setEnabled, setEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.djrapitops.plan.PlanPlugin
getDataFolder, getResource, isSystemEnabled
-
-
-
-
Method Detail
-
onLoad
public void onLoad()
- Specified by:
onLoad
in interfacecn.nukkit.plugin.Plugin
- Overrides:
onLoad
in classcn.nukkit.plugin.PluginBase
-
onEnable
public void onEnable()
- Specified by:
onEnable
in interfacePlanPlugin
- Specified by:
onEnable
in interfacecn.nukkit.plugin.Plugin
- Overrides:
onEnable
in classcn.nukkit.plugin.PluginBase
-
getColorScheme
public ColorScheme getColorScheme()
- Specified by:
getColorScheme
in interfacePlanPlugin
-
onDisable
public void onDisable()
- Specified by:
onDisable
in interfacePlanPlugin
- Specified by:
onDisable
in interfacecn.nukkit.plugin.Plugin
- Overrides:
onDisable
in classcn.nukkit.plugin.PluginBase
-
cancelAllTasks
public void cancelAllTasks()
-
onCommand
public boolean onCommand(cn.nukkit.command.CommandSender actualSender, cn.nukkit.command.Command actualCommand, java.lang.String label, java.lang.String[] args)
- Specified by:
onCommand
in interfacecn.nukkit.command.CommandExecutor
- Overrides:
onCommand
in classcn.nukkit.plugin.PluginBase
-
registerCommand
public void registerCommand(Subcommand command)
- Specified by:
registerCommand
in interfacePlanPlugin
-
getSystem
public PlanSystem getSystem()
- Specified by:
getSystem
in interfacePlanPlugin
-
-