mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-22 04:37:42 +01:00
Made stat placeholder more lenient
This commit is contained in:
parent
4f8577736b
commit
78c445bb5a
@ -1,6 +1,7 @@
|
|||||||
package net.Indyuce.mmoitems.comp.placeholders;
|
package net.Indyuce.mmoitems.comp.placeholders;
|
||||||
|
|
||||||
import io.lumine.mythic.lib.MythicLib;
|
import io.lumine.mythic.lib.MythicLib;
|
||||||
|
import io.lumine.mythic.lib.UtilityMethods;
|
||||||
import io.lumine.mythic.lib.api.item.NBTItem;
|
import io.lumine.mythic.lib.api.item.NBTItem;
|
||||||
import io.lumine.mythic.lib.api.player.MMOPlayerData;
|
import io.lumine.mythic.lib.api.player.MMOPlayerData;
|
||||||
import io.lumine.mythic.lib.api.util.AltChar;
|
import io.lumine.mythic.lib.api.util.AltChar;
|
||||||
@ -59,8 +60,8 @@ public class MMOItemsPlaceholders extends PlaceholderExpansion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (identifier.startsWith("stat_")) {
|
if (identifier.startsWith("stat_")) {
|
||||||
final String stat = identifier.substring(5).toUpperCase();
|
final String stat = UtilityMethods.caseOnWords(identifier.substring(5));
|
||||||
return StatManager.format(stat, MMOPlayerData.get(player).getStatMap().getStat(stat));
|
return StatManager.format(stat, MMOPlayerData.get(player));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (identifier.startsWith("ability_cd_"))
|
if (identifier.startsWith("ability_cd_"))
|
||||||
|
Loading…
Reference in New Issue
Block a user