From 4b2cc5ea610499bcc8901ccbebf7ca3f78c13e7c Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Thu, 4 May 2023 09:14:34 +0100 Subject: [PATCH] Fixed issue #810 about %mmocore_bound_% placeholder bug. --- .../net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java index 639c922d..16f998e8 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java @@ -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;