mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
don't allow duplicate ignores
This commit is contained in:
1 file changed
+3
-1
@@ -191,7 +191,9 @@ public class CarbonPlayerCommon implements CarbonPlayer, ForwardingAudience.Sing
|
||||
@Override
|
||||
public void ignoring(final CarbonPlayer player, final boolean nowIgnoring) {
|
||||
if (nowIgnoring) {
|
||||
this.ignoredPlayers.add(player.uuid());
|
||||
if (!this.ignoredPlayers.contains(player.uuid())) {
|
||||
this.ignoredPlayers.add(player.uuid());
|
||||
}
|
||||
} else {
|
||||
this.ignoredPlayers.remove(player.uuid());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user