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:
md_5
2014-07-22 20:24:15 +10:00
parent c42d3a375f
commit 1b18e64fb2
3 changed files with 13 additions and 2 deletions

View File

@@ -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
*/

View File

@@ -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 );