mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-27 00:45:40 +01:00
Fixed a bug related to %mmocore_skill_parameter_<parameter>:<skill-name>% placeholder.
This commit is contained in:
parent
f130f2aac9
commit
c73ee476da
@ -73,7 +73,7 @@ public class RPGPlaceholders extends PlaceholderExpansion {
|
||||
RegisteredSkill skill = Objects.requireNonNull(MMOCore.plugin.skillManager.getSkill(id), "Could not find skill with ID '" + id + "'");
|
||||
return String.valueOf(playerData.getSkillLevel(skill));
|
||||
} else if (identifier.startsWith("skill_modifier_")||identifier.startsWith("skill_parameter_")) {
|
||||
String[] ids= (identifier.startsWith("skill_modifier_")?identifier.substring(16):identifier.substring(17)).split(":");
|
||||
String[] ids= (identifier.startsWith("skill_modifier_")?identifier.substring(15):identifier.substring(16)).split(":");
|
||||
String parameterId = ids[0];
|
||||
String skillId = ids[1];
|
||||
RegisteredSkill skill = Objects.requireNonNull(MMOCore.plugin.skillManager.getSkill(skillId), "Could not find skill with ID '" + skillId + "'");
|
||||
|
Loading…
Reference in New Issue
Block a user