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
Interface for commands requiring OP rights to execute.
-
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.
-