How To

Config

Config structure

Group:
    Item_Name: Percentage

AnotherGroup:
    Item_Name: Percentage


Config example

default:
    Stick: 0
    
boxer:
    Fists: 500
    Wood_Sword: 50
    Stone_Sword: 50
    Iron_Sword: 50
    Gold_Sword: 50
    Diamond_Sword: 50
    
legolas:
    Bow: 150
    ShotArrow: 200



Groups

Group permissions

Permissions for each group are in this structure: sid.groupname

boxer:
    fists: 500

Will work for players that have a permission named "sid.boxer".

Note: Prefix is easy to remember, because "sid" is made from the first letters of "Simple Item Damage"!


Default group

There is a group named "default". Everything in this group doesn't need a permission and will work for all players.

default:
    stick: 150


Same item in several groups

If player is in several groups that contains the same item, then both percentages will be used.

default:
    fists: 120

boxer:
    fists: 500

If player is in boxer group (he is also in default group by default), then his fists percentage is equal to 600. This looks like a strange result, but percentage works this way. Trust me.



Item Names

  • Fists/Fist
  • ShotArrow
  • Every Material Enum from Bukkit version that you are using

Enums: For latest Recomended Build | Beta Build | Development Build

Note: Enums are usually normal names, like Iron_Sword and Stick, but there are also a lot of unusual names, like Wood_Sword instead of Wooden_Sword.


Comments

Posts Quoted:
Reply
Clear All Quotes