9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2026-01-04 15:31:47 +00:00

code clean up

This commit is contained in:
XiaoMoMi
2024-10-08 22:53:51 +08:00
parent a387cf5127
commit 8856831a94
4 changed files with 6 additions and 7 deletions

View File

@@ -24,8 +24,8 @@ import net.momirealms.customnameplates.api.CNPlayer;
import net.momirealms.customnameplates.api.ConfigManager;
import net.momirealms.customnameplates.api.CustomNameplates;
import net.momirealms.customnameplates.api.feature.CarouselText;
import net.momirealms.customnameplates.api.feature.RespawnListener;
import net.momirealms.customnameplates.api.feature.JoinQuitListener;
import net.momirealms.customnameplates.api.feature.RespawnListener;
import net.momirealms.customnameplates.api.feature.WorldChangeListener;
import net.momirealms.customnameplates.api.feature.tag.NameTagConfig;
import net.momirealms.customnameplates.api.feature.tag.TagRenderer;

View File

@@ -381,6 +381,7 @@ public class PlaceholderManagerImpl implements PlaceholderManager {
}
private void loadBubbleTextSection(Section section) {
if (!ConfigManager.bubbleModule()) return;
for (Map.Entry<String, Object> entry : section.getStringRouteMappedValues(false).entrySet()) {
String id = entry.getKey();
if (entry.getValue() instanceof Section inner) {
@@ -412,13 +413,14 @@ public class PlaceholderManagerImpl implements PlaceholderManager {
childrenText.put(placeholder8, list);
childrenText.put(placeholder9, list);
} else {
plugin.getPluginLogger().warn("Nameplate [" + bbID + "] not exists");
plugin.getPluginLogger().warn("Bubble [" + bbID + "] not exists");
}
}
}
}
private void loadNameplateTextSection(Section section) {
if (!ConfigManager.nameplateModule()) return;
for (Map.Entry<String, Object> entry : section.getStringRouteMappedValues(false).entrySet()) {
String id = entry.getKey();
if (entry.getValue() instanceof Section inner) {
@@ -457,6 +459,7 @@ public class PlaceholderManagerImpl implements PlaceholderManager {
}
private void loadBackgroundTextSection(Section section) {
if (!ConfigManager.backgroundModule()) return;
for (Map.Entry<String, Object> entry : section.getStringRouteMappedValues(false).entrySet()) {
String id = entry.getKey();
if (entry.getValue() instanceof Section inner) {