mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-01 15:13:26 +01:00
Allow -g flag for setting the controllable to ground, -r flag for clearing
This commit is contained in:
parent
7ba586c4c1
commit
cdebf54e1a
@ -38,7 +38,9 @@ public class Controllable extends Trait implements Toggleable, CommandConfigurab
|
|||||||
public void configure(CommandContext args) {
|
public void configure(CommandContext args) {
|
||||||
if (args.hasFlag('f'))
|
if (args.hasFlag('f'))
|
||||||
explicitType = EntityType.BLAZE;
|
explicitType = EntityType.BLAZE;
|
||||||
else if (args.hasFlag('n'))
|
else if (args.hasFlag('g'))
|
||||||
|
explicitType = EntityType.OCELOT;
|
||||||
|
else if (args.hasFlag('r'))
|
||||||
explicitType = null;
|
explicitType = null;
|
||||||
else if (args.hasValueFlag("explicittype"))
|
else if (args.hasValueFlag("explicittype"))
|
||||||
explicitType = Util.matchEntityType(args.getFlag("explicittype"));
|
explicitType = Util.matchEntityType(args.getFlag("explicittype"));
|
||||||
|
Loading…
Reference in New Issue
Block a user