Class ModerationModule
java.lang.Object
com.haven.havenplugin.ModerationModule
- All Implemented Interfaces:
Module, org.bukkit.event.Listener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic final record -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanCommand names this module owns, matching entries in plugin.yml.org.bukkit.command.CommandExecutorgetExecutor(String cmd) List<org.bukkit.event.Listener> getMuteInfo(UUID uuid) getName()org.bukkit.command.TabCompletergetTabCompleter(String cmd) booleanisMuted(org.bukkit.entity.Player player) voidvoidvoidvoidonPlayerJoin(org.bukkit.event.player.PlayerJoinEvent e) intrecordCase(UUID uuid, String playerName, String type, String reason, String moderator, long timestamp, Long durationSec, String ip) voidbooleanremoveCase(UUID uuid, int caseId) voidvoidvoidsendCaseRemoved(org.bukkit.OfflinePlayer target, int caseId, String staffName, String removalReason) voidsendMuteMessage(org.bukkit.entity.Player p, ModerationModule.MuteInfo info) booleantempBan(org.bukkit.OfflinePlayer target, long durationSec, String reason, String staffName, boolean ip) voidvoidvoid
-
Field Details
-
DATE_FORMAT
-
-
Constructor Details
-
ModerationModule
public ModerationModule()
-
-
Method Details
-
getName
-
getListeners
- Specified by:
getListenersin 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
-
onEnable
-
onDisable
-
reloadConfig
public void reloadConfig()- Specified by:
reloadConfigin interfaceModule
-
saveMutes
public void saveMutes() -
savePending
public void savePending() -
caseFile
-
recordCase
-
getCases
-
removeCase
-
ban
-
tempBan
-
unban
-
mute
-
unmute
-
isMuted
public boolean isMuted(org.bukkit.entity.Player player) -
getMuteInfo
-
warn
-
addnote
-
sendCaseRemoved
-
onPlayerJoin
public void onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent e) -
sendMuteMessage
-
getPlugin
-
getWebhookUrl
-
getBanReasonPrefix
-