Allow -g flag for setting the controllable to ground, -r flag for clearing

This commit is contained in:
fullwall 2012-10-15 21:04:15 +08:00
parent 5884059528
commit a70a308b47

View File

@ -38,7 +38,9 @@ public class Controllable extends Trait implements Toggleable, CommandConfigurab
public void configure(CommandContext args) {
if (args.hasFlag('f'))
explicitType = EntityType.BLAZE;
else if (args.hasFlag('n'))
else if (args.hasFlag('g'))
explicitType = EntityType.OCELOT;
else if (args.hasFlag('r'))
explicitType = null;
else if (args.hasValueFlag("explicittype"))
explicitType = Util.matchEntityType(args.getFlag("explicittype"));