Interface IMCOPCommand

All Superinterfaces:
IMCCommand
All Known Implementing Classes:
CommandBackup, CommandCanRaiderSpawn, CommandCitizenSpawnNew, CommandClaimChunks, CommandColonyPrintStats, CommandColonyRaidsInfo, CommandColonyResetStats, CommandExportColony, CommandGetRanks, CommandKillAnimal, CommandKillChicken, CommandKillCow, CommandKillMonster, CommandKillPig, CommandKillRaider, CommandKillSheep, CommandLoadAllBackups, CommandLoadBackup, CommandPruneWorld, CommandRaid, CommandReclaimChunks, CommandResetPlayerSupplies, CommandRSResetAll, CommandSetDeletable, CommandSetRank, CommandShowClaim, CommandToggleDebug, CommandTrackType

public interface IMCOPCommand extends IMCCommand
Interface for commands requiring OP rights to execute.
  • 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.