mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +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) {
|
public void setLeavePermission(String permission) {
|
||||||
leavePermission = permission;;
|
leavePermission = permission;;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean hasMuteList() {
|
||||||
|
if (mutedPlayers == null || mutedPlayers.isEmpty()) return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public Set<String> getMuteList() {
|
public Set<String> getMuteList() {
|
||||||
return mutedPlayers.keySet();
|
return mutedPlayers.keySet();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user