forked from Upstream/mmocore
Fixed issue #810 about %mmocore_bound_<int>% placeholder bug.
This commit is contained in:
parent
fc91ace143
commit
4b2cc5ea61
@ -124,7 +124,7 @@ public class RPGPlaceholders extends PlaceholderExpansion {
|
||||
return playerData.isInCombat() ? MythicLib.plugin.getMMOConfig().decimal.format((System.currentTimeMillis() - playerData.getCombat().getLastHit()) / 1000.) : "-1";
|
||||
|
||||
else if (identifier.startsWith("bound_")) {
|
||||
int slot = Math.max(0, Integer.parseInt(identifier.substring(6)) - 1);
|
||||
int slot = Math.max(0, Integer.parseInt(identifier.substring(6)));
|
||||
return playerData.hasSkillBound(slot) ? playerData.getBoundSkill(slot).getSkill().getName()
|
||||
: MMOCore.plugin.configManager.noSkillBoundPlaceholder;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user