From 1de4780c39077707249afb3fc47da60b28feacf7 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Sat, 8 Feb 2020 17:47:08 +0100 Subject: [PATCH] Add score API --- .../erethon/dungeonsxl/api/player/PlayerGroup.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/api/src/main/java/de/erethon/dungeonsxl/api/player/PlayerGroup.java b/api/src/main/java/de/erethon/dungeonsxl/api/player/PlayerGroup.java index e1ada5f3..93e3df2b 100644 --- a/api/src/main/java/de/erethon/dungeonsxl/api/player/PlayerGroup.java +++ b/api/src/main/java/de/erethon/dungeonsxl/api/player/PlayerGroup.java @@ -332,6 +332,20 @@ public interface PlayerGroup { */ void removeReward(Reward reward); + /** + * Returns the score number, which is used for capture the flag and similar game types. + * + * @return the score number + */ + int getScore(); + + /** + * Sets the score of this group to a new value. + * + * @param score the value + */ + void setScore(int score); + /** * Returns the initial amount of lives or -1 if group lives are not used. *