Remove logger.

This commit is contained in:
KHobbits 2013-01-16 16:30:30 +00:00
parent 04bd9e8baf
commit b3cc4dbe09

View File

@ -34,7 +34,6 @@ public class MetaItemStack
//TODO: TL this
public void addStringMeta(final User user, final boolean allowUnsafe, final String string, final IEssentials ess) throws Exception
{
ess.getLogger().info("Adding meta to " + stack.getType().name());
final String[] split = splitPattern.split(string, 2);
if (split.length < 1)
{
@ -104,8 +103,30 @@ public class MetaItemStack
final FireworkMeta meta = (FireworkMeta)stack.getItemMeta();
meta.setPower(power);
stack.setItemMeta(meta);
//TODO: Complain at Snowleo to code firework meta
}
}
// else if (split.length > 1 && split[0].equalsIgnoreCase("effect") && stack.getType() == Material.FIREWORK)
// {
// //TODO: Add validation messages
// final FireworkMeta meta = (FireworkMeta)stack.getItemMeta();
// Builder builder = FireworkEffect.builder();
//
// String[] effectData = split[1].toUpperCase(Locale.ENGLISH).split("\\|");
//
// builder.with(FireworkEffect.Type.valueOf(effectData[0]));
//
// String[] primaryColorStrings = effectData[1].split(",");
// List<Color> primaryColors = new ArrayList<Color>();
//
// for (String primaryColorString : primaryColorStrings) {
// primaryColors.add(DyeColor.valueOf(primaryColorString).getFireworkColor());
// }
//
// builder.withColor(primaryColors);
//
// final FireworkEffect effect = builder.build();
// meta.addEffect(effect);
// stack.setItemMeta(meta);
// }
else if (split.length > 1 && (split[0].equalsIgnoreCase("color") || split[0].equalsIgnoreCase("colour"))
&& (stack.getType() == Material.LEATHER_BOOTS
|| stack.getType() == Material.LEATHER_CHESTPLATE