Fix /npc glowing text

This commit is contained in:
fullwall 2016-03-07 18:58:40 +08:00
parent 5610955741
commit 507048b65d
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<craftbukkit.version>1.9-SNAPSHOT</craftbukkit.version>
<craftbukkit.version>1.9-R0.1-SNAPSHOT</craftbukkit.version>
<citizensapi.version>2.0.17-SNAPSHOT</citizensapi.version>
<vault.version>1.5.4</vault.version>
<powermock.version>1.4.12</powermock.version>

View File

@ -542,7 +542,7 @@ public class NPCCommands {
public void glowing(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
npc.data().setPersistent(NPC.GLOWING_METADATA, !npc.data().get(NPC.GLOWING_METADATA, false));
boolean glowing = npc.data().get(NPC.GLOWING_METADATA);
Messaging.sendTr(sender, glowing ? Messages.GLOWING_SET : Messages.GLOWING_UNSET);
Messaging.sendTr(sender, glowing ? Messages.GLOWING_SET : Messages.GLOWING_UNSET, npc.getName());
}
@Command(