Class SubPlugin

All Implemented Interfaces:
CommandExecutor, TabCompleter, TabExecutor, Plugin

public final class SubPlugin extends JavaPlugin
SubServers Client Plugin Class
  • Field Details

  • Constructor Details

  • Method Details

    • onEnable

      public void onEnable()
      Enable Plugin
      Specified by:
      onEnable in interface Plugin
      Overrides:
      onEnable in class JavaPlugin
    • reload

      public void reload(boolean notifyPlugins) throws IOException
      Throws:
      IOException
    • onDisable

      public void onDisable()
      Disable Plugin
      Specified by:
      onDisable in interface Plugin
      Overrides:
      onDisable in class JavaPlugin
    • parseJSON

      public Map<String,?> parseJSON(String json) throws Throwable
      Use reflection to access Gson for parsing
      Parameters:
      json - JSON to parse
      Returns:
      JSON as a map
      Throws:
      Throwable
    • pmc

      public void pmc(Player player, String... message)
      Send a message to the BungeeCord Plugin Messaging Channel
      Parameters:
      player - Player that will send
      message - Message contents