mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 14:38:57 +00:00
Support for checking is mute list is empty
This commit is contained in:
1 parent
d929a5be71
commit
e1046c35e0
1 file changed
+6
-1
@@ -214,7 +214,12 @@ public abstract class Channel {
|
||||
public void setLeavePermission(String permission) {
|
||||
leavePermission = permission;;
|
||||
}
|
||||
|
||||
|
||||
public boolean hasMuteList() {
|
||||
if (mutedPlayers == null || mutedPlayers.isEmpty()) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public Set<String> getMuteList() {
|
||||
return mutedPlayers.keySet();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user