Class DoubleDoorsPlugin

All Implemented Interfaces:
CommandExecutor, TabCompleter, TabExecutor, Plugin

public class DoubleDoorsPlugin extends JavaPlugin
The DoubleDoors plugin main class. See DoubleDoorsAPI for the public API.
  • Constructor Details

    • DoubleDoorsPlugin

      public DoubleDoorsPlugin()
  • Method Details

    • onEnable

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

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

      public Permission getInteractPermission()
      Get the permission required for automatically interacting with adjacent doors/trapdoors/fence gates.
      Returns:
      the permission, or null if DoubleDoors is not enabled
    • isRedstoneEnabled

      public boolean isRedstoneEnabled()
      Get whether redstone interactions are enabled for adjacent doors/trapdoors/fence gates.
      Returns:
      true if redstone interactions are enabled, otherwise false