9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2026-01-03 06:02:32 +00:00
This commit is contained in:
XiaoMoMi
2023-09-08 01:45:58 +08:00
parent e0e75e0499
commit ef4d5340a0
7 changed files with 20 additions and 3 deletions

View File

@@ -84,6 +84,8 @@ public class FontManager extends Function {
customImageWidth.put(ASCIIWidth.values()[i].getCharacter(), ASCIIWidth.values()[i].getWidth());
for (SimpleChar simpleChar : plugin.getImageManager().getCharacterMap().values())
customImageWidth.put(simpleChar.getChars(), simpleChar.getWidth());
for (OffsetFont offsetFont : OffsetFont.values())
customImageWidth.put(offsetFont.getCharacter(), offsetFont.getSpace() - 1);
YamlConfiguration config = ConfigUtils.getConfig("configs" + File.separator + "image-width.yml");
for (String image : config.getKeys(false)) {
String character = AdventureUtils.stripAllTags(PlaceholderAPI.setPlaceholders(null, image));