Class DoubleDoorsPlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.janboerman.doubledoors.DoubleDoorsPlugin
- All Implemented Interfaces:
CommandExecutor, TabCompleter, TabExecutor, Plugin
The DoubleDoors plugin main class.
See
DoubleDoorsAPI for the public API.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the permission required for automatically interacting with adjacent doors/trapdoors/fence gates.booleanGet whether redstone interactions are enabled for adjacent doors/trapdoors/fence gates.voidvoidonEnable()Methods inherited from class JavaPlugin
getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toStringMethods inherited from class PluginBase
equals, getName, hashCode
-
Constructor Details
-
DoubleDoorsPlugin
public DoubleDoorsPlugin()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfacePlugin- Overrides:
onEnablein classJavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfacePlugin- Overrides:
onDisablein classJavaPlugin
-
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
-