mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-23 01:27:33 +01:00
Make /npc skin -l (argless) work
This commit is contained in:
parent
0dfbc33aec
commit
61f7560561
@ -3065,13 +3065,17 @@ public class NPCCommands {
|
||||
throw new ServerCommandException();
|
||||
return;
|
||||
} else {
|
||||
if (args.hasFlag('l')) {
|
||||
trait.setShouldUpdateSkins(!trait.shouldUpdateSkins());
|
||||
Messaging.sendTr(sender, Messages.SKIN_LATEST_SET, npc.getName(),
|
||||
skinName != null ? skinName : trait.getSkinName());
|
||||
if (args.argsLength() != 2)
|
||||
return;
|
||||
}
|
||||
if (args.argsLength() != 2) {
|
||||
Messaging.send(sender, trait.getSkinName());
|
||||
return;
|
||||
}
|
||||
if (args.hasFlag('l')) {
|
||||
trait.setShouldUpdateSkins(true);
|
||||
}
|
||||
skinName = args.getString(1);
|
||||
}
|
||||
if (args.hasFlag('b')) {
|
||||
|
@ -398,6 +398,7 @@ public class Messages {
|
||||
public static final String SKELETON_TYPE_SET = "citizens.commands.npc.skeletontype.set";
|
||||
public static final String SKIN_CLEARED = "citizens.commands.npc.skin.cleared";
|
||||
public static final String SKIN_EXPORTED = "citizens.commands.npc.skin.exported";
|
||||
public static final String SKIN_LATEST_SET = "citizens.commands.npc.skin.latest-set";
|
||||
public static final String SKIN_LAYERS_SET = "citizens.commands.npc.skin.layers-set";
|
||||
public static final String SKIN_REQUIRED = "citizens.commands.npc.skin.missing-skin";
|
||||
public static final String SKIN_SET = "citizens.commands.npc.skin.set";
|
||||
|
@ -513,6 +513,7 @@
|
||||
"citizens.commands.npc.size.set" : "[[{0}]]''s size set to [[{1}]].",
|
||||
"citizens.commands.npc.skeletontype.invalid-type" : "Invalid skeleton type. Try one of the following: [[{0}]].",
|
||||
"citizens.commands.npc.skeletontype.set" : "{0}''s skeleton type set to [[{1}]].",
|
||||
"citizens.commands.npc.skin.latest-set" : "[[{0}]] set to use latest skins. Current skin name is [[{1}]]."
|
||||
"citizens.commands.npc.skin.cleared" : "[[{0}]]''s skin name was cleared.",
|
||||
"citizens.commands.npc.skin.description" : "Sets an NPC''s skin name. Use -l to set the skin to always update to the latest",
|
||||
"citizens.commands.npc.skin.error-setting-url" : "Error downloading skin texture from [[{0}]]. Are you sure the URL is valid?",
|
||||
|
Loading…
Reference in New Issue
Block a user