mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Fix colors in /npc horse
This commit is contained in:
parent
0e97f2f23f
commit
5408e7059c
@ -1102,7 +1102,7 @@ public class NPCCommands {
|
||||
Messaging.sendTr(sender, Messages.HORSE_DESCRIBE, Util.prettyEnum(horse.getColor()), Util.prettyEnum(type),
|
||||
Util.prettyEnum(horse.getStyle()));
|
||||
} else {
|
||||
sender.sendMessage(output);
|
||||
Messaging.send(sender, output);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -85,5 +85,4 @@ public class CitizensSpeechFactory implements SpeechFactory {
|
||||
throw new IllegalArgumentException("vocalchord name already registered");
|
||||
registered.put(name.toLowerCase(), clazz);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ import net.citizensnpcs.api.trait.Trait;
|
||||
import net.citizensnpcs.api.trait.TraitName;
|
||||
import net.citizensnpcs.api.util.Colorizer;
|
||||
import net.citizensnpcs.api.util.DataKey;
|
||||
import net.citizensnpcs.api.util.Messaging;
|
||||
import net.citizensnpcs.api.util.Placeholders;
|
||||
import net.citizensnpcs.trait.shop.ItemAction;
|
||||
import net.citizensnpcs.trait.shop.ItemAction.ItemActionGUI;
|
||||
@ -100,7 +101,7 @@ public class ShopTrait extends Trait {
|
||||
if (viewPermission != null && !sender.hasPermission(viewPermission))
|
||||
return;
|
||||
if (pages.size() == 0) {
|
||||
sender.sendMessage(ChatColor.RED + "Empty shop");
|
||||
Messaging.send(sender, "<red>Empty shop");
|
||||
return;
|
||||
}
|
||||
InventoryMenu.createSelfRegistered(new NPCShopViewer(this, sender)).present(sender);
|
||||
|
@ -55,7 +55,9 @@ public class SitTrait extends Trait {
|
||||
NMS.mount(holder.getEntity(), npc.getEntity());
|
||||
}
|
||||
|
||||
holder.teleport(sittingAt, TeleportCause.PLUGIN);
|
||||
if (holder.getStoredLocation() != null && holder.getStoredLocation().distance(sittingAt) > 0.05) {
|
||||
holder.teleport(sittingAt, TeleportCause.PLUGIN);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSitting(Location at) {
|
||||
|
Loading…
Reference in New Issue
Block a user