GlobalChatSuppressor/src/main/java/de/viper/globalchat/suppressor/SuppressManager.java gelöscht
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
package de.viper.globalchat.suppressor;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
public class SuppressManager {
|
||||
|
||||
private static final Set<UUID> suppressedPlayers = Collections.synchronizedSet(new HashSet<>());
|
||||
|
||||
public static void register(GlobalChatSuppressor plugin) {
|
||||
// Nichts weiter nötig, die Nachrichten werden beim Join/Quit-Event unterdrückt
|
||||
// via AsyncPlayerPreLogin oder PlayerJoin/Leave in Hauptplugin
|
||||
}
|
||||
|
||||
public static void suppress(UUID playerUUID) {
|
||||
suppressedPlayers.add(playerUUID);
|
||||
}
|
||||
|
||||
public static void unsuppress(UUID playerUUID) {
|
||||
suppressedPlayers.remove(playerUUID);
|
||||
}
|
||||
|
||||
public static boolean isSuppressed(UUID playerUUID) {
|
||||
return suppressedPlayers.contains(playerUUID);
|
||||
}
|
||||
|
||||
public static Set<UUID> getSuppressedPlayers() {
|
||||
return suppressedPlayers;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user