main/Config

Config File Help
The config file for V1.1 has some major changes added in!
with the addition of the new command /click open {clickname} {playertargetname}
you have the ability to have rooted sub menu's that can have rooted submenu's in them ect.
there are two default config section now.
Commands and PlayerClick
Commands
under the commands section you put all the commands that your blocks will be capable of.
Format

Commands:
  title:
    Name: {name of the command}
    Command: {The command to be performed, with @p being the player performing it, and @t being the target}
    Console: true/false {this determines if the command should be run from the console and not from the player, false means the player runs the command

for each new command have it listed under a new title, the default config just numbers the commands for the titles 1, 2, 3, ect.

PlayerClick
player click is the default blocks that show up when you shift right click on a player.
Format

 Rows: 1 {how many rows of inventory to show 1-5}
  Permission: player {the permission that players should have to open this inventory}
  Items:  {this starts your items list to be added to your inventory}
    Title: {the title of the item to add
      Item Type: 297  {the item Id of the block to be added to this click inventory}
      Name: Party Invite  {the name of this item [b]NOTE[/b] this name must match the name of a command! this is how click determines what command to run!!}
      Description: Invite @t to your Party! {the text displayed to someone when they mouse over the item}
      Durability: 1  {the durability or "damage value" of the item}

unlike commands that can have an infinite number no inventory can have more than 45 blocks added to it! to add more just keep setting new titles under Items: with Item Type: Name: Description: and Durability:

Adding new Clicks
new clicks or inventory menu windows, can be added by adding additional root config settings. These function exactly like setting up the PlayerClick section, but must each have their own name. In the full config file below i have added an example new click called RandomlyNamedClick.

Opening a click from a click a.k.a. adding sub menu's
To add sub menu's to your clicks you just need to have a command that makes the player open a new one. for this purpose a new command has been added into the Rpg Clicks plugin
/click open {clickname} {playername}
it should be noted playername is not the person opening it but rather their target, or as far as the click is concerned @t

Commands:
  9:
    Name: Open Click
    Command: click open RandomlyNamedClick @t
    Console: false

remember the console can't open an inventory so for submenu blocks you should always set Console to false.
to make sure the player can use this sub menu just make sure they have a block in their current menu named the same.

PlayerClick:
    3:
      Item Type: 69
      Name: Open Click
      Description: Open the sub menu RandomlyNamedClick
      Durability: 0

both the command and the block are named Open Click so that is the command that will be used when the block is pressed

here's the default config file that comes with the plugin, you'll probably want to delete or edit most of it since it's set up just as an example!

Commands:
  1:
    Name: Party Invite
    Command: party invite @t
    Console: false
  2:
    Name: Trade
    Command: trade @t
    Console: false
  3:
    Name: Achievements
    Command: titles list @t
    Console: false
  4:
    Name: Guild Invite
    Command: Guild Invite @t
    Console: false
  5:
    Name: Ressurection
    Command: res @t
    Console: false
  6:
    Name: Party Kick
    Command: party kick @t
    Console: false
  7:
    Name: Guild Kick
    Command: guild kick @t
    Console: false
  8:
    Name: Broadcast
    Command: broadcast @p really dilikes @t
    Console: true
  9:
    Name: Open Click
    Command: click open RandomlyNamedClick @t
    Console: false
PlayerClick:
  Rows: 1
  Permission: player
  Items:
    1:
      Item Type: 297
      Name: Party Invite
      Description: Invite @t to your Party!
      Durability: 1
    2:
      Item Type: 268
      Name: Trade
      Description: Open a trade with @p
      Durability: 0
    3:
      Item Type: 69
      Name: Open Click
      Description: Open the sub menu RandomlyNamedClick
      Durability: 0
    4:
      Item Type: 298
      Name: Broadcast
      Description: Broadcast a message
      Durability: 0
RandomlyNamedClick:
  Rows: 2
  Permission: admin
  Items:
    1:
      Item Type: 288
      Name: Guild Invite
      Description: Invite @t to your guild.
      Durability: 0
    2:
      Item Type: 278
      Name: Guild Kick
      Description: kick @t from your guild
      Durability: 0

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes