CMI specialized commands

Jan 12, 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 gonna 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, 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 manear 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 likePlayer! then command will be performed as player who sent original initialising command.
    • If command starts with fromConsole! 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 is target player. 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 (Money will be deducted from player).
    • If command starts with hasmoney:[amount]! then command will get performed if player has enough money.
    • If command starts with expcost:[amount]! then command will get performed if player has enough exp. (Exp will be deducted from player)
    • If command starts with hasexp:[amount]! then command will get performed if player has enough exp.
    • 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.
    • 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 don'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]! and expcost:[amount]! are conditional checks. What this mean is that if players doesn'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 doesnt have 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 he will get notification message about this and command will not get performed.
    • In case you would want to cancel all commands if players doesnt meat requirements, then use # in check variable. Example
      Code (Text):
      - moneycost:150#! cmi heal [playerName]
      - cmi feed [playerName]
      in this case player will not gonna be healed or fed if he doesn't have 150 money in his 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...