Interface IMCColonyOfficerCommand
- All Superinterfaces:
IMCCommand
- All Known Implementing Classes:
CommandAddOfficer,CommandChangeOwner,CommandCitizenInfo,CommandCitizenKill,CommandCitizenList,CommandCitizenModify,CommandCitizenReload,CommandCitizenTeleport,CommandCitizenTrack,CommandCitizenTriggerWalkTo,CommandColonyChunks,CommandColonyInfo,CommandDeleteColony,CommandEntityTrack,CommandSetAbandoned,CommandTeleport
Commands which may be used by officers and owners or OP only.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.minecolonies.core.commands.commandTypes.IMCCommand
IMCCommand.ExecutionHandler -
Field Summary
Fields inherited from interface com.minecolonies.core.commands.commandTypes.IMCCommand
OP_PERM_LEVEL -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancheckPreCondition(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) Executes pre-checks before issuing the command.Methods inherited from interface com.minecolonies.core.commands.commandTypes.IMCCommand
build, checkPreConditionAndExecute, checkPreConditionAndExecute, getName, onExecute
-
Method Details
-
checkPreCondition
default boolean checkPreCondition(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) Executes pre-checks before issuing the command. Checks for the senders type and OP rights.- Specified by:
checkPreConditionin interfaceIMCCommand- Parameters:
context- the command context.- Returns:
- true if fine.
-