Add example firework kit, and cleanup debug messages.

This commit is contained in:
KHobbits 2013-01-19 23:43:40 +00:00
parent 73c92bf742
commit 762bb65677
3 changed files with 7 additions and 24 deletions

View File

@ -120,10 +120,7 @@ public class Kit
if (parts.length > 2)
{
for (int i = 2; i < parts.length; i++)
{
metaStack.parseStringMeta(user, allowUnsafe, parts, 2, ess);
}
metaStack.parseStringMeta(user, allowUnsafe, parts, 2, ess);
}
final Map<Integer, ItemStack> overfilled;

View File

@ -120,26 +120,7 @@ public class Commandfirework extends EssentialsCommand
}
else
{
final ItemStack stack = user.getItemInHand();
if (stack.getType() == Material.FIREWORK)
{
FireworkMeta fmeta = (FireworkMeta)stack.getItemMeta();
List<FireworkEffect> effects = fmeta.getEffects();
user.sendMessage("The firework you are holding has the following effects:");
for (FireworkEffect effect : effects)
{
StringBuilder effectDesc = new StringBuilder();
effectDesc.append("Effect: ");
Map<String, Object> desc = effect.serialize();
for (String info : desc.keySet())
{
effectDesc.append(info).append(": ").append(desc.get(info)).append(" ");
}
user.sendMessage(effectDesc.toString());
}
}
throw new NotEnoughArgumentsException();
}
}
}

View File

@ -232,6 +232,11 @@ kits:
delay: 6000
items:
- 387 1 title:&4Book_&9o_&6Colors author:KHobbits lore:Ingame_color_codes book:Colors
firework:
delay: 6000
items:
- 401 1 name:Angry_Creeper color:red fade:green type:creeper power:1
- 401 1 name:StarryNight color:yellow,orange fade:blue type:star effect:trail,twinkle power:1
# Essentials Sign Control
# See http://wiki.ess3.net/wiki/Sign_Tutorial for instructions on how to use these.