How to set permissions

You can set custom permission to use the gui items

Set permission

You only need to have the usePermission enabled in the config.yml

and add the permission propertie in the item:

Example:

<itemName>:
  id: PLAYER_HEAD
  permission: "example.ban" # now player need example.ban permission to use it.
  url: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGY0NzJhZDgwMWUzM2U5ZmJmNTQyMmZiOTBhYTM1NjAyODc1MTE4YzEyOWFmZWFkZWM1ZmE2ODdjODhmODI4OSJ9fX0="
  name: " &8[&c Ban &aPlayers &8]"
  lore:
  - "&7"
  - "&8&l| &7Banned Players: &4%banned%"
  - "&7"
  - "&8» &7Click to ban players from your &aProtectionStone&7!"
  slot: 31

Last updated