add level to SRPlayer

This commit is contained in:
unurled 2024-03-14 12:15:02 +01:00
parent 8111b2b8f2
commit 84f7cd9786
Signed by: unurled
GPG key ID: FDBC9CBE1F82423F

View file

@ -23,6 +23,7 @@ import org.jetbrains.annotations.Nullable;
public class SRPlayer {
@Expose private UUID uuid = null;
@Expose private int level = 0;
@Expose private HashMap<Attribute, Double> attributes = new HashMap<>();
private HashMap<Attribute, HashMap<ItemStack, Double>> itemAttributes = new HashMap<>();
@Expose private List<PotionEffect> potionEffects;
@ -209,4 +210,8 @@ public class SRPlayer {
return itemAttributes.getOrDefault(attribute, new HashMap<>()).values().stream()
.reduce(0.0, Double::sum);
}
public int getLevel() {
return level;
}
}