Class ReportModule

java.lang.Object
com.haven.havenplugin.ReportModule
All Implemented Interfaces:
Module

public class ReportModule extends Object implements Module
  • Constructor Details

    • ReportModule

      public ReportModule()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Module
    • onEnable

      public void onEnable(Main plugin)
      Specified by:
      onEnable in interface Module
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface Module
    • reloadConfig

      public void reloadConfig()
      Called by /havenplugin reloadconfig Reports. Re-reads Reports.yml and logs any validation warnings.
      Specified by:
      reloadConfig in interface Module
    • getCommands

      public List<String> getCommands()
      Description copied from interface: Module
      Command names this module owns, matching entries in plugin.yml.
      Specified by:
      getCommands in interface Module
    • getExecutor

      public org.bukkit.command.CommandExecutor getExecutor(String cmd)
      Specified by:
      getExecutor in interface Module
    • getTabCompleter

      public org.bukkit.command.TabCompleter getTabCompleter(String cmd)
      Specified by:
      getTabCompleter in interface Module
    • loadConfig

      public List<String> loadConfig()
      Loads (or reloads) Reports.yml. Creates a default file if absent. Logs validation warnings and returns them so callers can surface them.
    • isWebhookConfigured

      public boolean isWebhookConfigured()
      Returns true if the webhook URL is present and non-empty.
    • handleReport

      public void handleReport(String reporterName, String targetName, String reason)