Fix issue #213 - servers crashing clients.
This commit is contained in:
@@ -5,22 +5,22 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class Scoreboard
|
||||
{
|
||||
|
||||
/**
|
||||
* Unique name for this scoreboard.
|
||||
*/
|
||||
private final String name;
|
||||
private String name;
|
||||
/**
|
||||
* Position of this scoreboard.
|
||||
*/
|
||||
private final Position position;
|
||||
private Position position;
|
||||
/**
|
||||
* Objectives for this scoreboard.
|
||||
*/
|
||||
@@ -88,4 +88,13 @@ public class Scoreboard
|
||||
{
|
||||
teams.remove( teamName );
|
||||
}
|
||||
|
||||
public void clear()
|
||||
{
|
||||
name = null;
|
||||
position = null;
|
||||
objectives.clear();
|
||||
scores.clear();
|
||||
teams.clear();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user