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:
Ursprung
ed0b0db409
Commit
f201fe9435
@ -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("");
|
||||
|
@ -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'
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren