mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-02 14:37:46 +01:00
Remove logger.
This commit is contained in:
parent
04bd9e8baf
commit
b3cc4dbe09
@ -34,7 +34,6 @@ public class MetaItemStack
|
|||||||
//TODO: TL this
|
//TODO: TL this
|
||||||
public void addStringMeta(final User user, final boolean allowUnsafe, final String string, final IEssentials ess) throws Exception
|
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);
|
final String[] split = splitPattern.split(string, 2);
|
||||||
if (split.length < 1)
|
if (split.length < 1)
|
||||||
{
|
{
|
||||||
@ -104,8 +103,30 @@ public class MetaItemStack
|
|||||||
final FireworkMeta meta = (FireworkMeta)stack.getItemMeta();
|
final FireworkMeta meta = (FireworkMeta)stack.getItemMeta();
|
||||||
meta.setPower(power);
|
meta.setPower(power);
|
||||||
stack.setItemMeta(meta);
|
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"))
|
else if (split.length > 1 && (split[0].equalsIgnoreCase("color") || split[0].equalsIgnoreCase("colour"))
|
||||||
&& (stack.getType() == Material.LEATHER_BOOTS
|
&& (stack.getType() == Material.LEATHER_BOOTS
|
||||||
|| stack.getType() == Material.LEATHER_CHESTPLATE
|
|| stack.getType() == Material.LEATHER_CHESTPLATE
|
||||||
|
Loading…
Reference in New Issue
Block a user