Setting up Payload

May 6, 2019
Setting up Payload
  • In - game:
    Here, I'll explain on how to use a more complicated command in the plugin:
    - payload setcart {name} {x} {y} {z} {x2} {y2} {z2}:
    For example, we want our payload start in the red circle and go in the direction of the arrow
    [​IMG]
    We will get the coordinates of these circled rails
    [​IMG]
    Now that we know the position of the first and the second rails, input them in order.
    The circled rail on the left has a coordinate of 257 69 -84, the one on the right's coordinate is 257 69 -85. So the command will be:
    /payload setcart {name} 257 69 -84 257 69 -85

    Config:
    - In the class contents, there's 2 sections named: command-mode and commands.
    - command-mode is default to false. If it is set to true, instead of giving the player the item shown it will perform the commands.
    Example:
    '0':
    material: DIAMOND_SWORD
    data: 0
    name: Diamond Sword
    enchantments: []
    lores: []
    command-mode: false
    commands: []
    This will give the player a normal diamond sword. Now, we want to force the player to say something instead.
    '0':
    material: DIAMOND_SWORD
    data: 0
    name: Diamond Sword
    enchantments: []
    lores: []
    command-mode: true
    commands:
    - sudo %player% say test chat
    This will force the player to say "test chat".

    These are the only parts of the plugin that I feel need an explanation to what they do and how to use them. Thanks for reading!
  • Loading...
  • Loading...