mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 14:38:49 +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
|
@Override
|
||||||
public void ignoring(final CarbonPlayer player, final boolean nowIgnoring) {
|
public void ignoring(final CarbonPlayer player, final boolean nowIgnoring) {
|
||||||
if (nowIgnoring) {
|
if (nowIgnoring) {
|
||||||
this.ignoredPlayers.add(player.uuid());
|
if (!this.ignoredPlayers.contains(player.uuid())) {
|
||||||
|
this.ignoredPlayers.add(player.uuid());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.ignoredPlayers.remove(player.uuid());
|
this.ignoredPlayers.remove(player.uuid());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user