Handle objective value changes. Although the client *shouldn't* be using this for any sort of keying, it may indeed be. Closes #1116 awaiting testing.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package net.md_5.bungee.api.score;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Represents an objective entry.
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class Objective
|
||||
{
|
||||
|
||||
@@ -16,7 +18,7 @@ public class Objective
|
||||
/**
|
||||
* Value of the objective.
|
||||
*/
|
||||
private final String value;
|
||||
private String value;
|
||||
/**
|
||||
* Type; integer or hearts
|
||||
*/
|
||||
|
@@ -74,6 +74,11 @@ public class Scoreboard
|
||||
return teams.get( name );
|
||||
}
|
||||
|
||||
public Objective getObjective(String name)
|
||||
{
|
||||
return objectives.get( name );
|
||||
}
|
||||
|
||||
public void removeObjective(String objectiveName)
|
||||
{
|
||||
objectives.remove( objectiveName );
|
||||
|
Reference in New Issue
Block a user