Class ReportModule
java.lang.Object
com.haven.havenplugin.ReportModule
- All Implemented Interfaces:
Module
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCommand names this module owns, matching entries in plugin.yml.org.bukkit.command.CommandExecutorgetExecutor(String cmd) getName()org.bukkit.command.TabCompletergetTabCompleter(String cmd) voidhandleReport(String reporterName, String targetName, String reason) booleanReturns true if the webhook URL is present and non-empty.Loads (or reloads) Reports.yml.voidvoidvoidCalled by /havenplugin reloadconfig Reports.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Module
getListeners
-
Constructor Details
-
ReportModule
public ReportModule()
-
-
Method Details
-
getName
-
onEnable
-
onDisable
-
reloadConfig
public void reloadConfig()Called by /havenplugin reloadconfig Reports. Re-reads Reports.yml and logs any validation warnings.- Specified by:
reloadConfigin interfaceModule
-
getCommands
Description copied from interface:ModuleCommand names this module owns, matching entries in plugin.yml.- Specified by:
getCommandsin interfaceModule
-
getExecutor
- Specified by:
getExecutorin interfaceModule
-
getTabCompleter
- Specified by:
getTabCompleterin interfaceModule
-
loadConfig
-
isWebhookConfigured
public boolean isWebhookConfigured()Returns true if the webhook URL is present and non-empty. -
handleReport
-