CMI Basic utilities

Dec 30, 2017
CMI Basic utilities
  • [​IMG]

    Here is an explanation of the main functions and their characteristics:

    SPAWN
    Args: 'cmi setspawn (playerName) (true/false) (-g:[groupName]) (-rng:[range])'
    Permission needed to use it: cmi.command.spawn

    Defines players spawn point only for /cmi spawn command.
    To set the spawn, you need cmi.command.setspawn permission.
    Code (Text):
    cmi set spawn

    Defines players spawn point after death, if set to true, for /cmi spawn command. This command also includes the previous example.
    Code (Text):
    cmi setspawn true

    Defines players spawn point after death, if set to true, for /cmi spawn command for a specific group. In this case it’s necessary to associate these tow permissions to the relative group.
    - cmi.spawngroup.[groupName]
    - cmi.respawngroup.[groupName] (Indicate in which spawn to go after death. If it’s missing, the reference spawn is the main one).
    Code (Text):
    cmi setspawn true -g:Moderator
    Defines players spawn point to be randomized depending by provided range. This allows to spread players in area and avoid placing them in each other. This command also includes the previous example.
    Code (Text):
    cmi setspawn true -g:Moderator -rng:5

    EXTRA
    • Are you tired of clicking the respawn button on the death screen?
      This permission allows you to return to the spawn immediately: cmi.autorespawn.
    • To send another player to the spawn, you need cmi.command.spawn.others permission.
    • You can activate BlackListedItems (Option to prevent player teleportation when he has blacklisted items in hies inventory. Can be bypassed with cmi.teleport.bypassblacklist) for the spawn in config file.
    • You can defines players first spawn point, in config file, when they logs into server for the first time.
    Code (Text):
     FirstSpawn:
       Use: true
       World: None
       X: 0.0
       Y: 0.0
       Z: 0.0
       Pitch: 0.0
       Yaw: 0.0

    • You can defines respawn order if defined world is not present in Specific list. Possible respawn locations: spawn, bedLocation, homeLocation, worldSpawn, warp![warpName]. Where warp![warName] can be any valid warp you set for players to be teleported, they will bypass any requirements for that warp.
    Code (Text):
       PriorityOrder:
       - spawn
       - bedLocation
       - homeLocation
       - worldSpawn
     # Defines respawn order for defines worlds
     # Remove world if you want to leave respawn handling for server or 3rd party plugin
     Specific:
       world:
       - spawn
       - bedLocation
       - homeLocation
       - worldSpawn

    WARPS
    Args: 'cmi setwarp [warpName] (true/false) (hand) (slot)'
    Permission needed to use it: cmi.command.warp

    Defines a list of warp for /cmi warp command.
    To set the warp, you need cmi.command.setwarp permission.

    A simple warp.
    Code (Text):
    cmi setwarp test

    Creates warp and will require cmi.command.warp.[warpname] permission node to use it. In this example cmi.command.warp.test.
    Code (Text):
    cmi setwarp test true

    Creates warp will take item from hand to display in gui for this warp.
    Code (Text):
    cmi setwarp test hand

    Creates warp and sets gui slot to be used in gui (1-54).
    Code (Text):
    cmi setwarp test 13

    All in one step.
    Code (Text):
    cmi setwarp test true hand 13

    Here an example how to customize warps if is activated the GUI version:

    [​IMG]

    The code below represents the Warp5, the most personalized one
    Code (Text):
    Warp5:
      Location: world;398.72;64.0;34.06;176.83;5.99
      ReqPerm: true
      Slot: 4
      Item:
        type: COBBLESTONE
        amount: 1
        meta:
          ==: ItemMeta
          meta-type: UNSPECIFIC
          display-name: ยง6Warp5
          lore:
          - ยง5Lore 1
          - ยง5Lore 2
          enchants:
            DURABILITY: 10
          ItemFlags:
          - HIDE_ENCHANTS

    EXTRA
    • To send another player to a warp, you need cmi.command.warp.others permission.
    • You can activate BlackListedItems like spawn in config file.
    • You can use warp like a condition to Respawn option.
    • You can use warp like a condition to WarmUps option.
    • You can remove warp with cmi.command.removewarp permission. Args: 'cmi removewarp (warpName)'.
    • You can change setting of warp in config file.
    Code (Text):
    Warps:
     # When set to true, warps list will be shown in GUI instead of chat list
     GUI: false
     # How many warps to show in each page
     perPage: 50
     # Do you want to save warp creator
     saveCreator: false
     # Do you want to show creator in warp list
     showCreator: false
  • Loading...
  • Loading...