mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-21 18:15:51 +01:00
Fix tablist
This commit is contained in:
parent
15efc9f838
commit
7739e5df21
@ -296,7 +296,7 @@ public class NPCCommands {
|
||||
|
||||
EntityType type = EntityType.PLAYER;
|
||||
if (args.hasValueFlag("type")) {
|
||||
String inputType = args.getFlag("type").toUpperCase();
|
||||
String inputType = args.getFlag("type");
|
||||
type = Util.matchEntityType(inputType);
|
||||
if (type == null) {
|
||||
throw new CommandException(Messaging.tr(Messages.NPC_CREATE_INVALID_MOBTYPE, inputType));
|
||||
|
@ -299,7 +299,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// NMS.sendToOnline(getListPacket(getBukkitEntity(), true));
|
||||
NMS.sendToOnline(getListPacket(getBukkitEntity(), true));
|
||||
if (otherOnline != null) {
|
||||
NMS.sendToOnline(getListPacket(otherOnline, false));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user