diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java index f4ffd6df..df27d52e 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java @@ -221,10 +221,10 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc } @Override - public Map mapBoundSkills() { - Map result= new HashMap<>(); + public Map mapBoundSkills() { + Map result= new HashMap<>(); for(int slot:boundSkills.keySet()) - result.put(slot,boundSkills.get(slot).getClassSkill()); + result.put(slot,boundSkills.get(slot).getClassSkill().getSkill().getHandler().getId()); return result; } diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/ClassDataContainer.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/ClassDataContainer.java index eb9625b6..f1198b19 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/ClassDataContainer.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/ClassDataContainer.java @@ -43,7 +43,7 @@ public interface ClassDataContainer { Map mapSkillTreePoints(); - Map mapBoundSkills(); + Map mapBoundSkills(); Map getNodeLevels(); diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/DefaultPlayerData.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/DefaultPlayerData.java index d7cfb92a..48c54d08 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/DefaultPlayerData.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/DefaultPlayerData.java @@ -128,7 +128,7 @@ public class DefaultPlayerData implements ClassDataContainer { } @Override - public Map mapBoundSkills() { + public Map mapBoundSkills() { return new HashMap<>(); }