Cant join a staff chat you are already in.

This commit is contained in:
Brianna 2019-04-04 18:35:28 -04:00
parent 6f1fbea067
commit ebb80afb39

View File

@ -28,6 +28,7 @@ public class StaffChannel {
}
public void addMember(Player player) {
if (members.contains(player.getUniqueId())) return;
UltimateModeration.getInstance().getStaffChatManager().getChats().values().stream().forEach(members1 -> {
if (members1.listMembers().contains(player.getUniqueId())) {
members1.removeMember(player);