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