summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-01-20 01:44:03 +0000
committerKHobbits <rob@khobbits.co.uk>2013-01-20 01:44:03 +0000
commit282be645ae981724a56e5808c95ce4512944a260 (patch)
tree2403dd8e25d5d04abc6613c15f1ab898f53fbb87
parentd832acc5c97aed76ee0afee8f87ef65a89372e38 (diff)
downloadEssentials-282be645ae981724a56e5808c95ce4512944a260.tar
Essentials-282be645ae981724a56e5808c95ce4512944a260.tar.gz
Essentials-282be645ae981724a56e5808c95ce4512944a260.tar.lz
Essentials-282be645ae981724a56e5808c95ce4512944a260.tar.xz
Essentials-282be645ae981724a56e5808c95ce4512944a260.zip
Fix colour syntax message on coloured leather.
-rw-r--r--Essentials/src/com/earth2me/essentials/MetaItemStack.java4
1 files 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:<red>|<green>|<blue> eg: color:255|0|0");
+ throw new Exception("Leather Color Syntax: color:<red>,<green>,<blue> eg: color:255,0,0");
}
}
else