Class 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()
      Disables the plugin.
      void onEnable()  
      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, onLoad, 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
    • Constructor Detail

      • PlanNukkit

        public PlanNukkit()
    • Method Detail

      • onEnable

        public void onEnable()
        Specified by:
        onEnable in interface PlanPlugin
        Specified by:
        onEnable in interface cn.nukkit.plugin.Plugin
        Overrides:
        onEnable in class cn.nukkit.plugin.PluginBase
      • onDisable

        public void onDisable()
        Disables the plugin.
        Specified by:
        onDisable in interface PlanPlugin
        Specified by:
        onDisable in interface cn.nukkit.plugin.Plugin
        Overrides:
        onDisable in class cn.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 interface cn.nukkit.command.CommandExecutor
        Overrides:
        onCommand in class cn.nukkit.plugin.PluginBase