CMI Specialized Commands

Jun 1, 2018
CMI Specialized Commands
  • [​IMG]

    Specialized Command Usage
    Works with: Ranks, Scheduler, Portals, EventCommands, Interactive Commands and Kits.

    • Use only one action variable, otherwise, last one will be used.
    • If command contains [playerName] then target player name will be used if possible. This will not work with scheduler as we have no clue which player should be used in that case.
    • If command starts with msg! and then player name is given, a simple message will be sent to that player if he is online. Example: msg! Zrips Hello!
    • If command starts with broadcast! then message will be sent to everyone on server in simple manner without any additional prefixes.
    • If command starts with actionbar! then all players will get action bar message defined after this variable
    • If command starts with title! then all players will get title message defined after this variable
    • If command starts with subtitle! then all players will get subtitle message defined after this variable
    • If command starts with kickall! then all players will be kicked from server with defined message. Useful before server stop.
    • If command starts with asPlayer! then command will be performed as player who sent original initialising command.
    • If command starts with asConsole! then command will be performed from console. This can be used in ares like customAlias which by default performs commands like player if not defined specifically to be performed as console.
    • if command starts with cooldown:[timeInSec]! then that line or any following ones (if defined) will have cooldown before reusing it. Example: cooldown:5! cmi heal [playerName] will heal player, but not more frequently than every 5sec.
    • If command starts with perm:[permissionNode]! then command will get performed if player has permission node. This will not work when we don't know who the target player is. Example: perm:cmi.announce.vip! broadcast! Hello vip guys
    • If command starts with moneycost:[amount]! then command will get performed if player has enough money.
    • If command starts with hasmoney:[amount]! then command will check if player has enough money and will continue with commands or stop if player doesn't have enough money.
    • If command starts with expcost:[amount]! then command will get performed if player has enough exp.
    • If command starts with hasexp:[amount]! then command will check if player has enough exp and will continue with commands or stop if player doesn't have enough exp.
    • If command starts with item:[item:)data)(-amount)]! then command will get performed if player has enough defined items. Example: item:stone:1-12! will require 12 granite blocks for command to be performed.
    • If command starts with hasitem:[item:)data)(-amount)]! then command will get performed if player has enough defined items. This will not take them on command execution.
    • If command starts with ifonline:[playerName]! then command will get performed if player is online. Static name or [playerName] can be depending what result you want to get.
    • If command starts with ifoffline:[playerName]! then command will get performed if player is offline. Static name or [playerName] can be depending what result you want to get.
    • If command starts with votes:[amount]! then command will get performed if player has enough votes (Votifier)
    • Insert line with delay! 5 to perform rest of commands after 5 seconds from trigger. This allows to create in example counter before server stop.
      Code (Text):
      - cmi launch [playerName]
      - delay! 2
      - cmi launch [playerName]
    • [randomPlayer] placeholder can be used to get random online player name who doesn't have cmi.scheduler.exclude permission node. This can be used to give rewards for random players on particular time. In example: cmi give [randomPlayer] diamond %rand/1-5% will give random amount from 1 to 5 diamonds to random online player
    • If command starts with allPlayers! then command will be performed on all online players. [allPlayers] should be used to insert players name where needed. In example: allPlayers! cmi heal [allPlayers] will heal everyone who is online.
    • Supports PlaceHolderAPI variables
    EXTRA
    • perm:[permissionNode]!, moneycost:[amount]!, hasmoney:[amount]!, hasexp:[amount]! and expcost:[amount]! are conditional checks. What this mean is that if players don't have permission node or enough money/exp, then followed command will not be performed. Example perm:cmi.testperm! cmi heal [playerName]
    • In case you want to inform player that he doesn't have the permission node required for that command or money/exp, then use ? in check variable. Example perm:cmi.testperm?! cmi heal [playerName] so if player doesn't have permission node cmi.testperm then they will get notification message about this and command will not be performed.
    • In case you would want to cancel all commands if players don't meet requirements, then use # in check variable. Example
      Code (Text):
      - moneycost:150#! cmi heal [playerName]
      - cmi feed [playerName]
      in this case player will not be healed or fed if they don't have 150 money in thier account to pay for it.
    • Both extra conditions can be used to inform player and cancel any further command performing actions if needed.
  • Loading...
  • Loading...