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 48afee92..880812f9 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 @@ -371,18 +371,19 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc */ @Override public Set getMMOUnlockedItems() { - return mmoData.getUnlockedItems().stream().filter(key->key.startsWith(MMOCORE_ITEM_ID)).collect(Collectors.toSet()); + return mmoData.getUnlockedItems().stream().filter(key -> key.startsWith(MMOCORE_ITEM_ID)).collect(Collectors.toSet()); } /** * Used to change the value of the unlockedItems handled by mmocore. + * * @param unlockedItems */ public void setUnlockedItems(Set unlockedItems) { - Set mythicUnlockedItems=mmoData.getUnlockedItems() + Set mythicUnlockedItems = mmoData.getUnlockedItems() .stream() - .filter((key)->!key.startsWith(MMOCORE_ITEM_ID)) + .filter((key) -> !key.startsWith(MMOCORE_ITEM_ID)) .collect(Collectors.toSet()); mythicUnlockedItems.addAll(unlockedItems); mmoData.setUnlockedItems(mythicUnlockedItems); @@ -1133,7 +1134,7 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc profess.getSkills() .stream() .filter(ClassSkill::isUnlockedByDefault) - .forEach(skill->mmoData.unlock(skill.getSkill())); + .forEach(skill -> mmoData.unlock(skill.getSkill())); } public boolean hasSkillBound(int slot) {