mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-17 05:31:23 +01:00
Added default entity type
This commit is contained in:
parent
6ac0bc831a
commit
7494c5ac58
@ -28,6 +28,7 @@ public class SummonCommand extends Command {
|
||||
pos = ArgumentType.RelativeVec3("pos");
|
||||
entityClass = ArgumentType.Enum("class", EntityClass.class);
|
||||
entityClass.setFormat(ArgumentEnum.Format.LOWER_CASED);
|
||||
entityClass.setDefaultValue(EntityClass.CREATURE);
|
||||
addSyntax(this::execute, entity, pos, entityClass);
|
||||
setDefaultExecutor((sender, context) -> sender.sendMessage("Usage: /summon <type> <x> <y> <z> <class>"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user