mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-18 00:25:32 +01:00
Add example firework kit, and cleanup debug messages.
This commit is contained in:
parent
73c92bf742
commit
762bb65677
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user