9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-23 17:09:25 +00:00

improved default configs

This commit is contained in:
XiaoMoMi
2024-11-14 16:26:11 +08:00
parent f6b8ce253f
commit 9a9865c424
34 changed files with 66 additions and 22 deletions

View File

@@ -138,7 +138,7 @@ public class NameplateManagerImpl implements NameplateManager {
} }
private void saveDefaultNameplates() { private void saveDefaultNameplates() {
String[] png_list = new String[]{"cat", "egg", "cheems", "wither", "xmas", "halloween", "hutao", "starsky", "trident", "rabbit"}; String[] png_list = new String[]{"egg", "xmas", "halloween", "hutao", "starsky", "trident", "rabbit", "sign", "game", "enter", "panda", "angel", "banner"};
String[] part_list = new String[]{"_left.png", "_middle.png", "_right.png", ".yml"}; String[] part_list = new String[]{"_left.png", "_middle.png", "_right.png", ".yml"};
for (String name : png_list) { for (String name : png_list) {
for (String part : part_list) { for (String part : part_list) {

View File

@@ -131,30 +131,31 @@ switch-text:
switch: "%np_equipped_nameplate%" switch: "%np_equipped_nameplate%"
default: "" default: ""
case: case:
'wither': "<gradient:#FF0000:#000000:%np_gradient_3%>"
'halloween': "<gradient:#FF0000:#000000:%np_gradient_3%>" 'halloween': "<gradient:#FF0000:#000000:%np_gradient_3%>"
'hutao': "<gradient:#FFFFFF:#FF4500:%np_gradient_3%>" 'hutao': "<gradient:#FFFFFF:#FF4500:%np_gradient_3%>"
'rabbit': "<gradient:#FFFFFF:#DB7093:%np_gradient_3%>" 'rabbit': "<gradient:#FFFFFF:#DB7093:%np_gradient_3%>"
'starsky': "<gradient:#FFFFF0:#696969:%np_gradient_3%>" 'starsky': "<gradient:#FFFFF0:#696969:%np_gradient_3%>"
'trident': "<gradient:#E1FFFF:#008B8B:%np_gradient_10%>" 'trident': "<gradient:#E1FFFF:#008B8B:%np_gradient_10%>"
'cheems': "<gradient:#C0C0C0:#F5F5F5:%np_gradient_5%>"
'egg': "<gradient:#FFFFFF:#FFA500:%np_gradient_5%>" 'egg': "<gradient:#FFFFFF:#FFA500:%np_gradient_5%>"
'cat': "<gradient:#FFFFFF:#1E90FF:%np_gradient_5%>" 'xmas': "<WHITE>"
'xmas': "<gradient:#FFFFFF:#FF4500:%np_gradient_5%>" 'angel': "<#8B4513>"
'sign': "<BLACK>"
'banner': "<WHITE>"
'enter': "<WHITE>"
nameplate_color_suffix: nameplate_color_suffix:
switch: "%np_equipped_nameplate%" switch: "%np_equipped_nameplate%"
default: "" default: ""
case: case:
'wither': "</gradient>"
'halloween': "</gradient>" 'halloween': "</gradient>"
'hutao': "</gradient>" 'hutao': "</gradient>"
'rabbit': "</gradient>" 'rabbit': "</gradient>"
'starsky': "</gradient>" 'starsky': "</gradient>"
'trident': "</gradient>" 'trident': "</gradient>"
'cheems': "</gradient>"
'egg': "</gradient>" 'egg': "</gradient>"
'cat': "</gradient>" 'xmas': "</WHITE>"
'xmas': "</gradient>" 'angel': "</#8B4513>"
'sign': "</WHITE>"
'enter': "</WHITE>"
world: world:
switch: '%player_world%' switch: '%player_world%'
case: case:

View File

@@ -0,0 +1,13 @@
display-name: Angel
left:
image: angel_left
height: 16
ascent: 14
middle:
image: angel_middle
height: 16
ascent: 14
right:
image: angel_right
height: 16
ascent: 14

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,13 @@
display-name: Banner
left:
image: banner_left
height: 16
ascent: 13
middle:
image: banner_middle
height: 16
ascent: 13
right:
image: banner_right
height: 16
ascent: 13

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -1,13 +1,13 @@
display-name: Sad Cat display-name: Enter
left: left:
image: cat_left image: enter_left
height: 16 height: 16
ascent: 12 ascent: 12
middle: middle:
image: cat_middle image: enter_middle
height: 16 height: 16
ascent: 12 ascent: 12
right: right:
image: cat_right image: enter_right
height: 16 height: 16
ascent: 12 ascent: 12

Binary file not shown.

After

Width:  |  Height:  |  Size: 957 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -1,13 +1,13 @@
display-name: Thank you, Cheems display-name: Video Game Console
left: left:
image: cheems_left image: game_left
height: 16 height: 16
ascent: 12 ascent: 12
middle: middle:
image: cheems_middle image: game_middle
height: 16 height: 16
ascent: 12 ascent: 12
right: right:
image: cheems_right image: game_right
height: 16 height: 16
ascent: 12 ascent: 12

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -1,13 +1,13 @@
display-name: Wither Rose display-name: Panda
left: left:
image: wither_left image: panda_left
height: 16 height: 16
ascent: 12 ascent: 12
middle: middle:
image: wither_middle image: panda_middle
height: 16 height: 16
ascent: 12 ascent: 12
right: right:
image: wither_right image: panda_right
height: 16 height: 16
ascent: 12 ascent: 12

Binary file not shown.

Before

Width:  |  Height:  |  Size: 957 B

After

Width:  |  Height:  |  Size: 997 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1015 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 928 B

After

Width:  |  Height:  |  Size: 999 B

View File

@@ -0,0 +1,13 @@
display-name: Oak Sign
left:
image: sign_left
height: 16
ascent: 14
middle:
image: sign_middle
height: 16
ascent: 14
right:
image: sign_right
height: 16
ascent: 14

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1023 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -19,6 +19,7 @@ package net.momirealms.customnameplates.bukkit.compatibility;
import me.clip.placeholderapi.PlaceholderAPI; import me.clip.placeholderapi.PlaceholderAPI;
import me.clip.placeholderapi.expansion.PlaceholderExpansion; import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import net.kyori.adventure.text.Component;
import net.momirealms.customnameplates.api.CustomNameplates; import net.momirealms.customnameplates.api.CustomNameplates;
import net.momirealms.customnameplates.api.CustomNameplatesAPI; import net.momirealms.customnameplates.api.CustomNameplatesAPI;
import net.momirealms.customnameplates.api.feature.OffsetFont; import net.momirealms.customnameplates.api.feature.OffsetFont;
@@ -235,6 +236,9 @@ public class NameplatesExtraExpansion extends PlaceholderExpansion {
String minuteStr = (minutes < 10) ? "0" + minutes : String.valueOf(minutes); String minuteStr = (minutes < 10) ? "0" + minutes : String.valueOf(minutes);
return hours + ":" + minuteStr; return hours + ":" + minuteStr;
} }
case "newline" -> {
return "\n";
}
} }
return null; return null;
} }

View File

@@ -1,6 +1,6 @@
# Project settings # Project settings
# Rule: [major update].[feature update].[bug fix] # Rule: [major update].[feature update].[bug fix]
project_version=3.0.10.2 project_version=3.0.11
config_version=32 config_version=32
project_group=net.momirealms project_group=net.momirealms