PlayerKits 2
  • PlayerKits 2 Wiki
  • How to Start
  • Kits Tutorial
  • Items Tutorial
  • Config.yml Tutorial
  • Inventory.yml Tutorial
  • Actions
  • Commands and Permissions
  • PlaceholderAPI Variables
  • Migrating from PlayerKits v1
  • Common Issues
  • Default Files
    • config.yml
    • Inventory.yml
    • messages.yml
Powered by GitBook
On this page
  • Commands
  • Permissions
  • Kit Creation with 'original' and 'configurable' Parameters

Commands and Permissions

Commands

Command aliases: /playerkits, /kits

Command
Description

/kit

Opens the GUI.

/kit claim <kit>

Claims a kit outside the GUI.

/kit <kit>

Claims a kit outside the GUI only if claim_kit_short_command option is enabled on the config.

/kit create <kit> /kit create <kit> original/configurable

/kit edit <kit>

Edits a kit on a GUI.

/kit give <kit> <player>

Gives a kit to the player, ignoring cooldown, permission, one time and requirements.

/kit delete <kit>

Deletes a kit.

/kit reset <kit> <player>/*

Resets kit data for a player, or reset a kit for all players (using *)

/kit preview <kit>

Previews a kit.

/kit open <inventory> <player>

Opens a specific inventory (defined in inventory.yml file) for a player.

/kit reload

Reloads the config.

/kit verify

Allows to check for plugin/configuration errors.

/kit migrate

Permissions

Permission
Description

playerkits.admin

Grants access to all plugin commands.

playerkits.bypass.cooldown

Allows the player to bypass cooldowns of all kits.

playerkits.bypass.onetime

Allows the player to bypass the one time of all kits.

Kit Creation with 'original' and 'configurable' Parameters

When using /kit create <kit>, by default, items will be saved following the new_kit_default_save_mode_original option in the config.yml file.

When using /kit create <kit> original , items will be saved into the config as an EXACT/ORIGINAL COPY of the item, without losing any important properties and internal data. This prevents some complex items from other plugins to broke when giving them again to the player.

Here is an example of the same item and the config differences.

With 'configurable' parameter:

items:
  '1':
    id: PLAYER_HEAD
    name: '&eEmoticon Derp'
    amount: 1
    durability: 3
    nbt:
    - Skulls:ID|534
    skull_data:
      texture: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHBzOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzNiYWFiZTcyNGVhZTU5YzVkMTNmNDQyYzdkYzVkMmIxYzZiNzBjMmY4MzM2NGE0ODhjZTU5NzNhZTgwYjRjMyJ9fX0=
      id: 069a79f4-44e9-4726-a5be-fca90e38aaf5
      owner: ''

With 'original' parameter:

items:
  '1':
    original:
      ==: org.bukkit.inventory.ItemStack
      v: 3700
      type: PLAYER_HEAD
      meta:
        ==: ItemMeta
        meta-type: SKULL
        display-name: '{"text":"","extra":[{"text":"Emoticon Derp","obfuscated":false,"italic":false,"underlined":false,"strikethrough":false,"color":"yellow","bold":false}]}'
        Damage: 3
        internal: H4sIAAAAAAAA/+NiYOBg4AzOLs3JKbbydGFgNjU2YQAAOpvx+xUAAAA=
        skull-owner:
          ==: PlayerProfile
          uniqueId: 069a79f4-44e9-4726-a5be-fca90e38aaf5
          properties:
          - name: textures
            value: eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHBzOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzNiYWFiZTcyNGVhZTU5YzVkMTNmNDQyYzdkYzVkMmIxYzZiNzBjMmY4MzM2NGE0ODhjZTU5NzNhZTgwYjRjMyJ9fX0=

If you choose to save kits using the 'original' parameter, you'll not be able to modify the items manually in the config.

PreviousActionsNextPlaceholderAPI Variables

Last updated 4 months ago

Creates a new kit using the items in your inventory. Optionals original/configurable parameters, explained .

Imports kits data from PlayerKits v1. More info .

When using /kit create <kit> configurable, items will be saved in a way you can modify their properties manually in the config following the documentation .

HERE
HERE
HERE