Skip to main content
Version: Current

Permissions

Command Flags

We are starting to make use of what is called Command Flags, They are short/long identifiers to make handling a large quantity of arguments easier for commands, including optional arguments.

Example

The first command we have moved to the new flag system /crazycrates migrate <migration_type> [crate] [true/false]

Previously, this was the format above. the true/false was going to be a new argument to migrate only user data from a plugin like ExcellentCrates instead of migrating the crates.

The command now is /crazycrates migrate -mt/--migration_type <migration_type> --crate/-c <crate> --data/-d

Each flag besides -mt/--migration_type is optional, and the order in which you add the flag does not matter. Obviously you cannot use --data/-d with --crate/-c as I specify it to run a migrator specifically for our internal crates.

CommandPermissionDescriptionDefault
/keyscrazycrates.keysCheck the number of keys you have.true
/keys [player]crazycrates.keys-othersCheck the number of keys a player has.op
/crazycrates give <virtual/physical> <crate> [amount] [player]crazycrates.givekeyGive a key(s) to a player to use on a crate.op
/crazycrates take <virtual/physical> <crate> [amount] [player]crazycrates.takekeyAllows you to take keys from a player.op
/crazycrates give-random <virtual/physical> <amount> <player>crazycrates.giverandomkeyGives a random key out of all the crates available.op
/crazycrates migrate -mt <migration_type> --crate/-c <crate> --data/-dcrazycrates.migrateHandles migrating with multiple types including from other crates pluginsop
/crazycrates giveall <virtual/physical> <crate> [amount]crazycrates.giveallGives all online players keys to use on a crate.op
/crazycrates additem <crate> <prize> <weight> [tier]crazycrates.additemAdd items in-game to a prize in a crate.op
/crazycrates transfer <crate> <player> <amount>crazycrates.transferAllows players to send virtual keys to another player.op
/crazycrates open-others <crate> [player] <virtual/physical>crazycrates.open-othersTries to open a crate for a player if they have a key.op
/crazycrates forceopen <crate> [player]crazycrates.forceopenOpens a crate for a player for free.op
/crazycrates preview <crate> [player]crazycrates.previewOpens the preview of a crate for a player.op
/crazycrates save <schematic file name>crazycrates.saveSave the new schematic file to the schematics folder.op
/crazycrates mass-open <crate> <virtual/physical> <amount>crazycrates.massopenMass opens crates. Defaults to 10 but can be changed in the crate config files.op
/crazycrates tp <location>crazycrates.teleportTeleport to a crate.op
/crazycrates debug <crate>crazycrates.debugGives all the prizes to you so you can see if your crate works.op
/crazycrates open <crate>crazycrates.openTries to open a crate for yourself if you have a key.op
/crazycrates set <crate>crazycrates.setSet a block you are looking at as the specified crate.op
/crazycrates convertcrazycrates.convertTries to convert supported plugin's crate files into crazy crate's crate files.op
/crazycrates reloadcrazycrates.reloadReloads the configuration and data files.op
/crazycrates admincrazycrates.adminOpens the Admin Keys GUI.op
/crazycrates helpcrazycrates.helpShows all player commands for CrazyCrates.true
/crazycrates listcrazycrates.listDisplays a list of all crates.op
/crazycrates wandcrazycrates.wandGives a wand that lets you select 2 points to create schematics.op
/crazycratescrazycrates.guiOpens the primary crate menu.true

Other

NodeDescriptionDefaultDeprecated & Removing
crazycrates.open.<crate-name>Allows you to open a crate.trueno
crazycrates.respin.<crate-name>.<number>Allows you to control how many times a player can respin, max cap configured in each crate filefalseno
crazycrates.deny.open.<crate-name>Prevents you from opening a crate.falseyes
crazycrates.exclude.give-allPrevents you from getting keys when using giveall.opno
crazycrates.setmenuSets the block you are looking at to open the (/crate) crate menu.opno

Permissions

WildcardDescriptionDefault
crazycrates.players.*Gives access to all player commands.false
crazycrates.admin.*Gives access to all admin commands.false
crazycrates.schematic.*Gives access to all commands relating to schematics.false