From 6170540a24f7f2515039d6fe73845c8c5580eb8d Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 20 Jan 2013 01:44:03 +0000 Subject: Fix colour syntax message on coloured leather. --- Essentials/src/com/earth2me/essentials/MetaItemStack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/MetaItemStack.java b/Essentials/src/com/earth2me/essentials/MetaItemStack.java index 5cbaf6a5a..aabc2db1b 100644 --- a/Essentials/src/com/earth2me/essentials/MetaItemStack.java +++ b/Essentials/src/com/earth2me/essentials/MetaItemStack.java @@ -147,7 +147,7 @@ public class MetaItemStack || stack.getType() == Material.LEATHER_HELMET || stack.getType() == Material.LEATHER_LEGGINGS)) { - final String[] color = split[1].split(","); + final String[] color = split[1].split("(\\||,)"); if (color.length == 3) { final int red = Util.isInt(color[0]) ? Integer.parseInt(color[0]) : 0; @@ -159,7 +159,7 @@ public class MetaItemStack } else { - throw new Exception("Leather Color Syntax: color:|| eg: color:255|0|0"); + throw new Exception("Leather Color Syntax: color:,, eg: color:255,0,0"); } } else -- cgit v1.2.3