Merge remote-tracking branch 'origin/master'

# Conflicts:
#	MMOCore-API/src/main/java/net/Indyuce/mmocore/manager/ConfigManager.java
This commit is contained in:
Indyuce 2022-08-18 12:50:56 +02:00
commit 792ca9af39
14 changed files with 179 additions and 345 deletions

View File

@ -5,6 +5,7 @@ import io.lumine.mythic.lib.manager.StatManager;
import net.Indyuce.mmocore.MMOCore;
import net.Indyuce.mmocore.api.player.PlayerActivity;
import net.Indyuce.mmocore.api.player.PlayerData;
import net.Indyuce.mmocore.gui.api.item.Placeholders;
import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.attribute.Attribute;
@ -37,25 +38,33 @@ public class PlayerActionBar extends BukkitRunnable {
public void run() {
for (PlayerData data : PlayerData.getAll())
if (data.isOnline() && !data.getPlayer().isDead() && !data.isCasting() && data.getActivityTimeOut(PlayerActivity.ACTION_BAR_MESSAGE) == 0) {
data.getPlayer().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(MMOCore.plugin.placeholderParser.parse(data.getPlayer(),
MythicLib.plugin.parseColors((data.getProfess().hasActionBar() ? data.getProfess().getActionBar() : config.format)
.replace("{health}", digit.format(data.getPlayer().getHealth()))
.replace("{max_health}", StatManager.format("MAX_HEALTH", data.getPlayer().getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue()))
.replace("{mana_icon}", data.getProfess().getManaDisplay().getIcon())
.replace("{mana}", digit.format(data.getMana()))
.replace("{max_mana}", StatManager.format("MAX_MANA", data.getStats().getStat("MAX_MANA")))
.replace("{stamina}", digit.format(data.getStamina()))
.replace("{max_stamina}", StatManager.format("MAX_STAMINA", data.getStats().getStat("MAX_STAMINA")))
.replace("{stellium}", digit.format(data.getStellium()))
.replace("{max_stellium}", StatManager.format("MAX_STELLIUM", data.getStats().getStat("MAX_STELLIUM")))
.replace("{class}", data.getProfess().getName())
.replace("{xp}", MythicLib.plugin.getMMOConfig().decimal.format(data.getExperience()))
.replace("{armor}", StatManager.format("ARMOR", data.getPlayer().getAttribute(Attribute.GENERIC_ARMOR).getValue()))
.replace("{level}", "" + data.getLevel())
.replace("{name}", data.getPlayer().getDisplayName())))));
Placeholders holders=getActionBarPlaceholder(data);
data.getPlayer().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(
holders.apply(data.getPlayer(), data.getProfess().hasActionBar() ? data.getProfess().getActionBar() : config.format)));
}
}
public Placeholders getActionBarPlaceholder(PlayerData data) {
Placeholders holders= new Placeholders();
holders.register("health", digit.format(data.getPlayer().getHealth()));
holders.register("max_health", StatManager.format("MAX_HEALTH", data.getPlayer().getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue()));
holders.register("mana_icon", data.getProfess().getManaDisplay().getIcon());
holders.register("mana", digit.format(data.getMana()));
holders.register("max_mana", StatManager.format("MAX_MANA", data.getStats().getStat("MAX_MANA")));
holders.register("stamina", digit.format(data.getStamina()));
holders.register("max_stamina", StatManager.format("MAX_STAMINA", data.getStats().getStat("MAX_STAMINA")));
holders.register("stellium", digit.format(data.getStellium()));
holders.register("max_stellium", StatManager.format("MAX_STELLIUM", data.getStats().getStat("MAX_STELLIUM")));
holders.register("class", data.getProfess().getName());
holders.register("xp", MythicLib.plugin.getMMOConfig().decimal.format(data.getExperience()));
holders.register("armor", StatManager.format("ARMOR", data.getPlayer().getAttribute(Attribute.GENERIC_ARMOR).getValue()));
holders.register("level", "" + data.getLevel());
holders.register("name", data.getPlayer().getDisplayName());
return holders;
}
private static class ActionBarConfig {
private final boolean enabled;
private final int ticks, timeout;

View File

@ -598,6 +598,11 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
waypoints.add(waypoint.getId());
}
public void lockWaypoint(Waypoint waypoint) {
waypoints.remove(waypoint.getId());
}
/**
* @deprecated Provide a heal reason with {@link #heal(double, PlayerResourceUpdateEvent.UpdateReason)}
*/
@ -692,8 +697,8 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
return;
}
MMOCore.plugin.configManager.getSimpleMessage("warping-comencing", "left", "" + ((120 - t) / 20)).send(getPlayer());
if (t++ >= 100) {
MMOCore.plugin.configManager.getSimpleMessage("warping-comencing", "left", "" + ((MMOCore.plugin.configManager.waypointWarpTime+20 - t) / 20)).send(getPlayer());
if (t++ >= MMOCore.plugin.configManager.waypointWarpTime) {
getPlayer().teleport(target.getLocation());
getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 20, 1, false, false));
MMOCore.plugin.soundManager.getSound(SoundEvent.WARP_TELEPORT).playTo(getPlayer());
@ -701,11 +706,11 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
return;
}
MMOCore.plugin.soundManager.getSound(SoundEvent.WARP_CHARGE).playTo(getPlayer(), 1, (float) (t / Math.PI * .015 + .5));
double r = Math.sin((double) t / 100 * Math.PI);
MMOCore.plugin.soundManager.getSound(SoundEvent.WARP_CHARGE).playTo(getPlayer(), 1, (float) (t / Math.PI * 1.5/MMOCore.plugin.configManager.waypointWarpTime + .5));
double r = Math.sin((double) t / MMOCore.plugin.configManager.waypointWarpTime * Math.PI);
for (double j = 0; j < Math.PI * 2; j += Math.PI / 4)
getPlayer().getLocation().getWorld().spawnParticle(Particle.REDSTONE,
getPlayer().getLocation().add(Math.cos((double) t / 20 + j) * r, (double) t / 50, Math.sin((double) t / 20 + j) * r), 1,
getPlayer().getLocation().add(Math.cos((double) 5*t /MMOCore.plugin.configManager.waypointWarpTime + j) * r, (double) 2*t / MMOCore.plugin.configManager.waypointWarpTime, Math.sin((double) 5*t / MMOCore.plugin.configManager.waypointWarpTime + j) * r), 1,
new Particle.DustOptions(Color.PURPLE, 1.25f));
}
}.runTaskTimer(MMOCore.plugin, 0, 1);
@ -952,6 +957,7 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc
getPlayer().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(message));
}
@Deprecated
public void setAttribute(PlayerAttribute attribute, int value) {
setAttribute(attribute.getId(), value);

View File

@ -34,12 +34,12 @@ import net.Indyuce.mmocore.skill.cast.KeyCombo;
import net.Indyuce.mmocore.skill.cast.PlayerKey;
import net.Indyuce.mmocore.experience.ExperienceObject;
import net.md_5.bungee.api.ChatColor;
import org.apache.commons.lang.Validate;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.craftbukkit.libs.org.apache.commons.lang3.Validate;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.jetbrains.annotations.NotNull;
@ -76,6 +76,10 @@ public class PlayerClass extends PostLoadObject implements ExperienceObject {
// If the class redefines its own key combos.
private final Map<KeyCombo, Integer> combos = new HashMap<>();
private final Set<PlayerKey> firstComboKeys= new HashSet<>();
private int longestCombo;
private final Map<PlayerResource, ResourceRegeneration> resourceHandlers = new HashMap<>();
@ -153,6 +157,7 @@ public class PlayerClass extends PostLoadObject implements ExperienceObject {
combo.registerKey(PlayerKey.valueOf(UtilityMethods.enumName(str)));
combos.put(combo, spellSlot);
firstComboKeys.add(combo.getAt(0));
longestCombo = Math.max(longestCombo, combo.countKeys());
} catch (RuntimeException exception) {
MMOCore.plugin.getLogger().log(Level.WARNING, "Could not load key combo '" + key + "': " + exception.getMessage());
@ -441,6 +446,10 @@ public class PlayerClass extends PostLoadObject implements ExperienceObject {
return combos;
}
public Set<PlayerKey> getFirstComboKeys() {
return firstComboKeys;
}
public int getLongestCombo() {
return longestCombo;
}

View File

@ -58,7 +58,8 @@ public class CommandVerbose {
POINTS,
SKILL_TREE_POINTS,
RESET,
RESOURCE
RESOURCE,
WAYPOINT;
}
private enum VerboseValue {

View File

@ -28,7 +28,6 @@ public class AdminCommandTreeNode extends CommandTreeNode {
addChild(new PointsCommandTreeNode("attr-realloc", this, PlayerData::setAttributeReallocationPoints, PlayerData::giveAttributeReallocationPoints, PlayerData::getAttributeReallocationPoints));
addChild(new PointsCommandTreeNode("skill-realloc", this, PlayerData::setSkillReallocationPoints, PlayerData::giveSkillReallocationPoints, PlayerData::getSkillReallocationPoints));
addChild(new PointsCommandTreeNode("skill-tree-realloc", this, PlayerData::setSkillTreeReallocationPoints, PlayerData::giveSkillTreeReallocationPoints, PlayerData::getSkillTreeReallocationPoints));
for (PlayerResource res : PlayerResource.values())
addChild(new ResourceCommandTreeNode(res.name().toLowerCase(), this, res));
}

View File

@ -0,0 +1,51 @@
package net.Indyuce.mmocore.command.rpg.waypoint;
import io.lumine.mythic.lib.command.api.CommandTreeNode;
import io.lumine.mythic.lib.command.api.Parameter;
import net.Indyuce.mmocore.MMOCore;
import net.Indyuce.mmocore.api.player.PlayerData;
import net.Indyuce.mmocore.command.CommandVerbose;
import net.Indyuce.mmocore.waypoint.Waypoint;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class LockCommandTreeNode extends CommandTreeNode {
public LockCommandTreeNode(CommandTreeNode parent) {
super(parent, "lock");
addParameter(new Parameter("<waypoint>", (explorer, list) -> MMOCore.plugin.waypointManager.getAll().forEach(way -> list.add(way.getId()))));
addParameter(Parameter.PLAYER);
}
@Override
public CommandResult execute(CommandSender sender, String[] args) {
if (args.length < 4)
return CommandResult.THROW_USAGE;
if (!MMOCore.plugin.waypointManager.has(args[2])) {
sender.sendMessage(ChatColor.RED + "Could not find waypoint " + args[2]);
return CommandResult.FAILURE;
}
Player player = Bukkit.getPlayer(args[3]);
if (player == null) {
sender.sendMessage(ChatColor.RED + "Could not find player " + args[3]);
return CommandResult.FAILURE;
}
PlayerData playerData = PlayerData.get(player);
Waypoint waypoint = MMOCore.plugin.waypointManager.get(args[2]);
if (!playerData.hasWaypoint(waypoint)) {
sender.sendMessage(ChatColor.RED + "The waypoint " + args[2] + " is already locked.");
return CommandResult.FAILURE;
}
PlayerData.get(player).lockWaypoint(waypoint);
CommandVerbose.verbose(sender,CommandVerbose.CommandType.WAYPOINT,ChatColor.GOLD + player.getName() + ChatColor.YELLOW + " successfully locked " + ChatColor.GOLD + waypoint.getId()
+ ChatColor.YELLOW + ".");
return CommandResult.SUCCESS;
}
}

View File

@ -12,6 +12,7 @@ public class WaypointsCommandTreeNode extends CommandTreeNode {
addChild(new OpenCommandTreeNode(this));
addChild(new TeleportCommandTreeNode(this));
addChild(new ItemCommandTreeNode(this));
addChild(new LockCommandTreeNode(this));
}
@Override

View File

@ -25,6 +25,9 @@ public class Placeholders {
@Nullable String found = placeholders.get(holder);
if (found != null)
str = str.replace("{" + holder + "}", found);
else
str = str.replace("{" + holder + "}", "PHE");
}
// External placeholders

View File

@ -2,8 +2,8 @@ package net.Indyuce.mmocore.manager;
import io.lumine.mythic.lib.MythicLib;
import net.Indyuce.mmocore.MMOCore;
import net.Indyuce.mmocore.api.ConfigFile;
import net.Indyuce.mmocore.api.player.PlayerData;
import net.Indyuce.mmocore.api.ConfigFile;
import net.Indyuce.mmocore.api.util.input.ChatInput;
import net.Indyuce.mmocore.api.util.input.PlayerInput;
import net.Indyuce.mmocore.api.util.input.PlayerInput.InputType;
@ -27,6 +27,7 @@ public class ConfigManager {
public final long combatLogTimer, lootChestExpireTime, lootChestPlayerCooldown, globalSkillCooldown;
public final double lootChestsChanceWeight, fishingDropsChanceWeight;
public final int maxPartyLevelDifference, maxBoundSkills;
private final FileConfiguration messages;
public ConfigManager() {
@ -67,7 +68,6 @@ public class ConfigManager {
loadDefaultFile("expcurves", "levels.txt");
loadDefaultFile("expcurves", "mining.txt");
}
if(!new File(MMOCore.plugin.getDataFolder()+"/skilltree").exists()) {
loadDefaultFile("skilltree","combat.yml");
}
@ -110,7 +110,6 @@ public class ConfigManager {
cobbleGeneratorXP = MMOCore.plugin.getConfig().getBoolean("should-cobblestone-generators-give-exp");
saveDefaultClassInfo = MMOCore.plugin.getConfig().getBoolean("save-default-class-info");
maxBoundSkills= MMOCore.plugin.getConfig().getInt("max-bound-skills",6);
overrideVanillaExp = MMOCore.plugin.getConfig().getBoolean("override-vanilla-exp");
}
private ChatColor getColorOrDefault(String key, ChatColor defaultColor) {

View File

@ -10,11 +10,13 @@ import io.lumine.mythic.lib.skill.trigger.TriggerType;
import net.Indyuce.mmocore.MMOCore;
import net.Indyuce.mmocore.api.event.PlayerKeyPressEvent;
import net.Indyuce.mmocore.api.player.PlayerData;
import net.Indyuce.mmocore.gui.api.item.Placeholders;
import net.Indyuce.mmocore.skill.cast.PlayerKey;
import net.Indyuce.mmocore.api.SoundObject;
import net.Indyuce.mmocore.skill.cast.KeyCombo;
import net.Indyuce.mmocore.skill.cast.SkillCastingHandler;
import org.apache.commons.lang.Validate;
import org.bukkit.Bukkit;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
@ -32,10 +34,15 @@ public class KeyCombos implements Listener {
* hash code method
*/
private final Map<KeyCombo, Integer> combos = new HashMap<>();
/**
* All the keys that are at the start of a combo.
*/
private final Set<PlayerKey> firstComboKeys = new HashSet<>();
/**
* Key players need to press to start a combo
*/
private final boolean needsInitializerKey;
private final PlayerKey initializerKey;
private final int longestCombo;
@ -64,6 +71,7 @@ public class KeyCombos implements Listener {
combo.registerKey(PlayerKey.valueOf(UtilityMethods.enumName(str)));
combos.put(combo, spellSlot);
firstComboKeys.add(combo.getAt(0));
longestCombo = Math.max(longestCombo, combo.countKeys());
} catch (RuntimeException exception) {
MMOCore.plugin.getLogger().log(Level.WARNING, "Could not load key combo '" + key + "': " + exception.getMessage());
@ -79,8 +87,13 @@ public class KeyCombos implements Listener {
comboClickSound = config.contains("sound.combo-key") ? new SoundObject(config.getConfigurationSection("sound.combo-key")) : null;
failComboSound = config.contains("sound.fail-combo") ? new SoundObject(config.getConfigurationSection("sound.fail-combo")) : null;
needsInitializerKey = config.getBoolean("needs-initializer-key", true);
// Find initializer key
initializerKey = PlayerKey.valueOf(UtilityMethods.enumName(Objects.requireNonNull(config.getString("initializer-key"), "Could not find initializer key")));
initializerKey = needsInitializerKey ? PlayerKey.valueOf(UtilityMethods.enumName(Objects.requireNonNull(
config.getString("initializer-key"), "Could not find initializer key"))) : null;
}
@EventHandler
@ -89,6 +102,7 @@ public class KeyCombos implements Listener {
Player player = playerData.getPlayer();
if (!event.getData().isCasting()) {
if (needsInitializerKey) {
if (event.getPressed() == initializerKey) {
// Always cancel event
@ -100,8 +114,23 @@ public class KeyCombos implements Listener {
beginComboSound.playTo(player);
}
return;
}
} else {
Set<PlayerKey> firstKeys = playerData.getProfess().getFirstComboKeys().isEmpty() ? firstComboKeys : playerData.getProfess().getFirstComboKeys();
if (firstKeys.contains(event.getPressed())) {
// Always cancel event
event.setCancelled(true);
// Start combo
CustomSkillCastingHandler casting =new CustomSkillCastingHandler(playerData);
playerData.setSkillCasting(casting);
casting.current.registerKey(event.getPressed());
if (beginComboSound != null)
beginComboSound.playTo(player);
}
return;
}
}
// Adding pressed key
@ -183,6 +212,9 @@ public class KeyCombos implements Listener {
@Override
public void onTick() {
if (actionBarOptions != null)
if (actionBarOptions.isSubtitle)
getCaster().getPlayer().sendTitle(" ", actionBarOptions.format(this), 0, 20, 0);
else
getCaster().displayActionBar(actionBarOptions.format(this));
}
@ -190,36 +222,42 @@ public class KeyCombos implements Listener {
private class ActionBarOptions {
private final String separator, noKey;
private final String separator, noKey, prefix, suffix;
/**
* Saves the names for all the players keys. Used when displaying
* the current player's key combo on the action bar
*/
private final Map<PlayerKey, String> keyNames = new HashMap<>();
private final boolean isSubtitle;
ActionBarOptions(ConfigurationSection config) {
this.prefix = config.contains("prefix") ? config.getString("prefix") : "";
this.suffix = config.contains("suffix") ? config.getString("suffix") : "";
this.separator = Objects.requireNonNull(config.getString("separator"), "Could not find action bar option 'separator'");
this.noKey = Objects.requireNonNull(config.getString("no-key"), "Could not find action bar option 'no-key'");
this.isSubtitle = config.getBoolean("" + "", false);
for (PlayerKey key : PlayerKey.values())
keyNames.put(key, Objects.requireNonNull(config.getString("key-name." + key.name()), "Could not find translation for key " + key.name()));
}
public String format(CustomSkillCastingHandler casting) {
StringBuilder builder = new StringBuilder();
Placeholders holders = MMOCore.plugin.actionBarManager.getActionBarPlaceholder(casting.getCaster());
builder.append(prefix);
// Join all keys with separator
String builder = casting.current.countKeys() == 0 ? noKey : keyNames.get(casting.current.getAt(0));
builder.append(casting.current.countKeys() == 0 ? noKey : keyNames.get(casting.current.getAt(0)));
int j = 1;
for (; j < casting.current.countKeys(); j++)
builder += separator + keyNames.get(casting.current.getAt(j));
builder.append(separator + keyNames.get(casting.current.getAt(j)));
// All remaining
for (; j < casting.classLongestCombo; j++)
builder += separator + noKey;
builder.append(separator + noKey);
return MythicLib.plugin.parseColors(builder);
builder.append(suffix);
return holders.apply(casting.getCaster().getPlayer(), builder.toString());
}
}
}

View File

@ -227,6 +227,9 @@ combat-log:
# skills, etc.) when selecting a new class
save-default-class-info: false
#Time taken in ticks to teleport using waypoints.
waypoint-warp-time: 100
# Change this to the name of the color you want for
# the different resource bar placeholders
resource-bar-colors:
@ -253,3 +256,4 @@ command-verbose:
points: true
reset: true
resource: true
waypoint: true

View File

@ -0,0 +1,9 @@
#Example
test-condition:
- 'level{amount=10}'
#Will load the 2 conditions from test-condition-2.
- 'from{source=test-condition-2}'
test-condition-2:
- 'world{name=world}'
- 'level{profession=MINING;amount=3}'

View File

@ -1,143 +0,0 @@
id: autocombat
name: AutoCombat
type: automatic
item: GOLDEN_AXE
lore:
- '&6This autoskill tree is used for combat abilities!'
nodes:
strength:
name: 'Combat strength'
children:
strong:
force: 2
max-level: 2
size: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
#modifers
force:
name: 'Force'
size: 1
max-children: 1
children:
strong:
weaponry: 1
archery: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
weaponry:
name: 'Weaponry'
max-level: 2
size: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
archery:
name: 'Archery'
max-level: 2
size: 1
children:
strong:
archery2: 2
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
archery2:
name: 'Archery2'
max-level: 2
size: 1
children:
strong:
archery3: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
archery3:
name: 'Archery3'
max-level: 2
size: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
icons:
unlocked:
1:
item: 'GREEN_DYE'
locked:
1:
item: "BROWN_DYE"
unlockable:
1:
item: "BLUE_DYE"
fully-locked:
1:
item: "BLACK_DYE"
path:
item: "WHITE_DYE"

View File

@ -1,152 +0,0 @@
id: 'combat'
name: '&4Combat'
lore:
- '&6This skill tree is used for combat abilities!'
type: 'linked'
item: 'DIAMOND_AXE'
nodes:
strength:
name: 'Combat strength'
coordinates:
x: 0
y: 0
max-level: 2
is-root: true
size: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
#modifers
force:
name: 'Force'
size: 1
max-children: 1
coordinates:
x: 1
y: 0
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
weaponry:
name: 'Weaponry'
coordinates:
x: 2
y: 0
max-level: 2
size: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
archery:
name: 'Archery'
coordinates:
x: 1
y: 1
max-level: 2
size: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
archery2:
name: 'Archery2'
coordinates:
x: 1
y: 2
max-level: 2
size: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
archery3:
name: 'Archery3'
coordinates:
x: 1
y: 3
max-level: 2
size: 1
lores:
unlocked:
1 :
- "&eYou are level 1"
2:
- "&eYou are level 2"
locked:
- "&4This skill is locked"
unlockable:
- "&aThis skill is unlockable"
fully-locked:
- '&aThis is skill is fully locked'
paths:
coordinates:
x: 2
y: 2
icons:
unlocked:
1:
item: 'GREEN_DYE'
locked:
1:
item: "BROWN_DYE"
unlockable:
1:
item: "BLUE_DYE"
fully-locked:
1:
item: "BLACK_DYE"
path:
item: "WHITE_DYE"