3
0
Mirror von https://github.com/St3venAU/ArmorStandTools.git synchronisiert 2024-12-27 12:00:07 +01:00

Add the possibility to define an armor stand name as invisible

Dieser Commit ist enthalten in:
Ethan 2023-02-27 18:41:05 +01:00
Ursprung ed0b0db409
Commit f201fe9435
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 84BCC48521647A16
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -362,8 +362,9 @@ public class AST extends JavaPlugin {
if(input.equals("&")) input = "";
if(name) {
if (input.length() > 0) {
as.setCustomName(input);
as.setCustomNameVisible(true);
boolean customNameVisibility = input.charAt(0) != '!';
as.setCustomName(customNameVisibility ? input : input.substring(1));
as.setCustomNameVisible(customNameVisibility);
p.sendMessage(ChatColor.GREEN + Config.nameSet);
} else {
as.setCustomName("");

Datei anzeigen

@ -104,7 +104,7 @@ removeACmd: 'Remove a command'
cmdHelp: 'This command is used to add/remove commands to the nearest armor stand (within 4 blocks). The commands are executed when the armor stand is right clicked, lowest priority first.'
#New since v4.4.0
enterName: 'Enter armor stand name in chat'
enterName2: 'Enter armor stand name in chat, or to remove the name enter:'
enterName2: 'Enter armor stand name in chat, with a "!" at the beginning to make the name invisible, or to remove the name enter:'
enterSkull: 'Enter username for armor stand skull in chat'
inputTimeout: 'Input timeout. Please try again.'
nameSet: 'Armor stand name set'