Class ModerationModule

java.lang.Object
com.haven.havenplugin.ModerationModule
All Implemented Interfaces:
Module, org.bukkit.event.Listener

public class ModerationModule extends Object implements Module, org.bukkit.event.Listener
  • Field Details

  • Constructor Details

    • ModerationModule

      public ModerationModule()
  • Method Details

    • getName

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

      public List<org.bukkit.event.Listener> getListeners()
      Specified by:
      getListeners 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
    • 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()
      Specified by:
      reloadConfig in interface Module
    • saveMutes

      public void saveMutes()
    • savePending

      public void savePending()
    • caseFile

      public File caseFile(UUID uuid)
    • recordCase

      public int recordCase(UUID uuid, String playerName, String type, String reason, String moderator, long timestamp, Long durationSec, String ip)
    • getCases

      public List<Map<?,?>> getCases(UUID uuid)
    • removeCase

      public boolean removeCase(UUID uuid, int caseId)
    • ban

      public boolean ban(org.bukkit.OfflinePlayer target, String reason, String staffName, boolean ip)
      Returns:
      false only for offline IP-ban
    • tempBan

      public boolean tempBan(org.bukkit.OfflinePlayer target, long durationSec, String reason, String staffName, boolean ip)
      Returns:
      false only for offline IP-ban
    • unban

      public void unban(org.bukkit.OfflinePlayer target, String reason, String staffName, boolean ip)
    • mute

      public void mute(org.bukkit.OfflinePlayer target, String reason, String staffName, Long durationSec)
    • unmute

      public void unmute(org.bukkit.OfflinePlayer target, String staffName)
    • isMuted

      public boolean isMuted(org.bukkit.entity.Player player)
    • getMuteInfo

      public ModerationModule.MuteInfo getMuteInfo(UUID uuid)
    • warn

      public void warn(org.bukkit.OfflinePlayer target, String reason, String staffName)
    • addnote

      public void addnote(org.bukkit.OfflinePlayer target, String note, String staffName)
    • sendCaseRemoved

      public void sendCaseRemoved(org.bukkit.OfflinePlayer target, int caseId, String staffName, String removalReason)
    • onPlayerJoin

      public void onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent e)
    • sendMuteMessage

      public void sendMuteMessage(org.bukkit.entity.Player p, ModerationModule.MuteInfo info)
    • getPlugin

      public Main getPlugin()
    • getWebhookUrl

      public String getWebhookUrl()
    • getBanReasonPrefix

      public String getBanReasonPrefix()