forked from Upstream/mmocore
Added %mmocore_bound<1-to-6>% placeholder
This commit is contained in:
parent
dc97cbeac9
commit
4453525900
@ -62,6 +62,13 @@ public class RPGPlaceholders
|
|||||||
return MMOCore.plugin.configManager.decimal.format(current / next * 100);
|
return MMOCore.plugin.configManager.decimal.format(current / next * 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (identifier.startsWith("bound_")) {
|
||||||
|
int slot = Math.max(0, Integer.parseInt(identifier.substring(6)) - 1);
|
||||||
|
PlayerData playerData = PlayerData.get(player);
|
||||||
|
return playerData.hasSkillBound(slot) ? playerData.getBoundSkill(slot).getSkill().getName()
|
||||||
|
: MMOCore.plugin.configManager.noSkillBoundPlaceholder;
|
||||||
|
}
|
||||||
|
|
||||||
else if (identifier.startsWith("profession_"))
|
else if (identifier.startsWith("profession_"))
|
||||||
return "" + PlayerData.get(player).getCollectionSkills()
|
return "" + PlayerData.get(player).getCollectionSkills()
|
||||||
.getLevel(identifier.substring(11).replace(" ", "-").replace("_", "-").toLowerCase());
|
.getLevel(identifier.substring(11).replace(" ", "-").replace("_", "-").toLowerCase());
|
||||||
|
@ -25,7 +25,7 @@ public class ConfigManager {
|
|||||||
|
|
||||||
public boolean overrideVanillaExp, hotbarSwap;
|
public boolean overrideVanillaExp, hotbarSwap;
|
||||||
public double expPartyBuff, regenPartyBuff;
|
public double expPartyBuff, regenPartyBuff;
|
||||||
public String partyChatPrefix;
|
public String partyChatPrefix, noSkillBoundPlaceholder;
|
||||||
public ChatColor staminaFull, staminaHalf, staminaEmpty;
|
public ChatColor staminaFull, staminaHalf, staminaEmpty;
|
||||||
public int combatLogTimer, lootChestExpireTime;
|
public int combatLogTimer, lootChestExpireTime;
|
||||||
|
|
||||||
@ -101,6 +101,7 @@ public class ConfigManager {
|
|||||||
formatSymbols.setDecimalSeparator(getFirstChar(MMOCore.plugin.getConfig().getString("number-format.decimal-separator"), ','));
|
formatSymbols.setDecimalSeparator(getFirstChar(MMOCore.plugin.getConfig().getString("number-format.decimal-separator"), ','));
|
||||||
combatLogTimer = MMOCore.plugin.getConfig().getInt("combat-log.timer");
|
combatLogTimer = MMOCore.plugin.getConfig().getInt("combat-log.timer");
|
||||||
lootChestExpireTime = Math.max(MMOCore.plugin.getConfig().getInt("loot-chest-expire-time"), 1) * 1000;
|
lootChestExpireTime = Math.max(MMOCore.plugin.getConfig().getInt("loot-chest-expire-time"), 1) * 1000;
|
||||||
|
noSkillBoundPlaceholder = getSimpleMessage("no-skill-placeholder").message();
|
||||||
|
|
||||||
staminaFull = getColorOrDefault("stamina-whole", ChatColor.GREEN);
|
staminaFull = getColorOrDefault("stamina-whole", ChatColor.GREEN);
|
||||||
staminaHalf = getColorOrDefault("stamina-half", ChatColor.DARK_GREEN);
|
staminaHalf = getColorOrDefault("stamina-half", ChatColor.DARK_GREEN);
|
||||||
|
@ -163,3 +163,4 @@ not-unlocked-skill: '&cYou have not unlocked that skill yet.'
|
|||||||
no-skill-bound: '&cYou don''t have any skill bound to this slot.'
|
no-skill-bound: '&cYou don''t have any skill bound to this slot.'
|
||||||
not-active-skill: '&cThis is not an active skill.'
|
not-active-skill: '&cThis is not an active skill.'
|
||||||
skill-max-level-hit: '&cYou already hit the max level for that skill.'
|
skill-max-level-hit: '&cYou already hit the max level for that skill.'
|
||||||
|
no-skill-placeholder: 'No Skill Bound'
|
||||||
|
Loading…
Reference in New Issue
Block a user