Package org.reprogle.honeypot
Class Honeypot
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.reprogle.honeypot.Honeypot
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public final class Honeypot
extends org.bukkit.plugin.java.JavaPlugin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCheck the GitHub repo of the plugin to verify the version of Spigot we're running on is supportedstatic GriefPreventionUtilRetrieve the GriefPrevention Util helperstatic GUIgetGUI()Returns the GUI object of the plugin for GUI creationstatic HoneypotLoggerGets the Honeypot loggerstatic net.milkbowl.vault.permission.PermissionReturns the permission object for Vaultstatic BehaviorRegistrystatic WorldGuardUtilRetrieve the WorldGuard Util helperstatic booleanisFolia()Check if the server is running on the experimental Folia software.voidDisable method called by BukkitvoidonEnable()Enable method called by Bukkit.voidonLoad()Set up WorldGuard.Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getLog4JLogger, getSLF4JLogger
-
Field Details
-
plugin
-
processor
-
-
Constructor Details
-
Honeypot
public Honeypot()
-
-
Method Details
-
onLoad
public void onLoad()Set up WorldGuard. This must be done in onLoad() due to how WorldGuard registers flags.- Specified by:
onLoadin interfaceorg.bukkit.plugin.Plugin- Overrides:
onLoadin classorg.bukkit.plugin.java.JavaPlugin
-
onEnable
public void onEnable()Enable method called by Bukkit. This is a little messy due to all the setup it has to do- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()Disable method called by Bukkit- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
checkIfServerSupported
public static void checkIfServerSupported()Check the GitHub repo of the plugin to verify the version of Spigot we're running on is supported -
isFolia
public static boolean isFolia()Check if the server is running on the experimental Folia software.- Returns:
- True if Folia, false if anything else
-
getPermissions
public static net.milkbowl.vault.permission.Permission getPermissions()Returns the permission object for Vault- Returns:
- Vault
Permission
-
getGUI
Returns the GUI object of the plugin for GUI creation- Returns:
GUI
-
getHoneypotLogger
Gets the Honeypot logger- Returns:
HoneypotLogger
-
getWorldGuardUtil
Retrieve the WorldGuard Util helper -
getGriefPreventionUtil
Retrieve the GriefPrevention Util helper -
getRegistry
-