Fixed scores duplicates
This commit is contained in:
parent
57c4993a30
commit
3489800f28
@ -31,6 +31,7 @@ public class FirstWinsScore extends Score {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addResult(Player p) {
|
public void addResult(Player p) {
|
||||||
|
if(scores.contains(p)) return;
|
||||||
scores.add(p);
|
scores.add(p);
|
||||||
|
|
||||||
new TitleMessage(Duration.ofMillis(1000), Duration.ofSeconds(1)).appendTranslated("score#finish").send(p);
|
new TitleMessage(Duration.ofMillis(1000), Duration.ofSeconds(1)).appendTranslated("score#finish").send(p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user