mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-18 08:35:44 +01:00
Fix colour syntax message on coloured leather.
This commit is contained in:
parent
987b2ff4d5
commit
6170540a24
@ -147,7 +147,7 @@ public class MetaItemStack
|
|||||||
|| stack.getType() == Material.LEATHER_HELMET
|
|| stack.getType() == Material.LEATHER_HELMET
|
||||||
|| stack.getType() == Material.LEATHER_LEGGINGS))
|
|| stack.getType() == Material.LEATHER_LEGGINGS))
|
||||||
{
|
{
|
||||||
final String[] color = split[1].split(",");
|
final String[] color = split[1].split("(\\||,)");
|
||||||
if (color.length == 3)
|
if (color.length == 3)
|
||||||
{
|
{
|
||||||
final int red = Util.isInt(color[0]) ? Integer.parseInt(color[0]) : 0;
|
final int red = Util.isInt(color[0]) ? Integer.parseInt(color[0]) : 0;
|
||||||
@ -159,7 +159,7 @@ public class MetaItemStack
|
|||||||
}
|
}
|
||||||
else
|
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
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user