mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-02 15:43:26 +01:00
Update color for deliver item difference message
This commit is contained in:
parent
e8f0945bfa
commit
1e3226f859
@ -98,35 +98,35 @@ public class NpcListener implements Listener {
|
|||||||
plugin.getLocaleQuery().sendMessage(player, Lang.get(player, "questInvalidDeliveryItem").replace("<item>", text), hand.getType(), hand.getDurability());
|
plugin.getLocaleQuery().sendMessage(player, Lang.get(player, "questInvalidDeliveryItem").replace("<item>", text), hand.getType(), hand.getDurability());
|
||||||
switch(reasonCode) {
|
switch(reasonCode) {
|
||||||
case 1:
|
case 1:
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "one item is null"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "one item is null"));
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
// Should never happen
|
// Should never happen
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "ERROR"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "ERROR"));
|
||||||
break;
|
break;
|
||||||
case -1:
|
case -1:
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "name"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "name"));
|
||||||
break;
|
break;
|
||||||
case -2:
|
case -2:
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "amount"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "amount"));
|
||||||
break;
|
break;
|
||||||
case -3:
|
case -3:
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "durability"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "durability"));
|
||||||
break;
|
break;
|
||||||
case -4:
|
case -4:
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "display name or lore"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "display name or lore"));
|
||||||
break;
|
break;
|
||||||
case -5:
|
case -5:
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "enchantments"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "enchantments"));
|
||||||
break;
|
break;
|
||||||
case -6:
|
case -6:
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "stored enchants"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "stored enchants"));
|
||||||
break;
|
break;
|
||||||
case -7:
|
case -7:
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "item flags"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "item flags"));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
player.sendMessage(Lang.get(player, "difference").replace("<data>", "unknown"));
|
player.sendMessage(ChatColor.GRAY + Lang.get(player, "difference").replace("<data>", "unknown"));
|
||||||
}
|
}
|
||||||
if (hand.hasItemMeta()) {
|
if (hand.hasItemMeta()) {
|
||||||
if (hand.getType().equals(Material.ENCHANTED_BOOK)) {
|
if (hand.getType().equals(Material.ENCHANTED_BOOK)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user