Interface ModerationService
public interface ModerationService
Bans, mutes, kicks and their shared history. Every mutating method fires the matching cancellable
event (see
fr.mathildeuh.youneedme.api.event) synchronously on the calling thread before
doing any I/O, so listeners can veto a punishment before it is persisted.-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<@Nullable Punishment> CompletableFuture<@Nullable Punishment> activeIpBan(String ip) CompletableFuture<@Nullable Punishment> activeMute(UUID target) activePunishments(PunishmentType type, int page, int pageSize) All currently-active bans/mutes, for/banlist.Full punishment history for a player, newest first.isIpBanned(String ip) Kicks are instantaneous (no active state) but are still logged for/checkpunish.
-
Method Details
-
ban
CompletableFuture<Punishment> ban(UUID target, @Nullable @Nullable UUID issuedBy, String reason, @Nullable @Nullable Long durationMillis) -
banIp
CompletableFuture<Punishment> banIp(String ip, @Nullable @Nullable UUID issuedBy, String reason, @Nullable @Nullable Long durationMillis) -
mute
CompletableFuture<Punishment> mute(UUID target, @Nullable @Nullable UUID issuedBy, String reason, @Nullable @Nullable Long durationMillis) -
warn
-
kick
Kicks are instantaneous (no active state) but are still logged for/checkpunish. -
unban
-
unbanIp
-
unmute
-
isBanned
-
isIpBanned
-
isMuted
-
activeBan
-
activeMute
-
activeIpBan
-
history
Full punishment history for a player, newest first. -
activePunishments
All currently-active bans/mutes, for/banlist.
-