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:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user