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

public interface IMCColonyOfficerCommand extends IMCCommand
Commands which may be used by officers and owners or OP only.
  • 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:
      checkPreCondition in interface IMCCommand
      Parameters:
      context - the command context.
      Returns:
      true if fine.