JustKits

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

Description

This is a configurable kit selector perfect for KitPVP! Supports most economy plugins. Supports all color codes anywhere! To remove your kit, just click an empty space on the selector, and it will clear your inventory.

Configurable options when creating a kit are:

  • Price (Make it 0 to display as "Free", and DO NOT use a $ sign)
  • Items (Items it gives the player when they select that kit)
  • Commands (Commands it runs when the player selects that kit)
  • Enchanted (If it's displayed as an enchanted item in the selector GUI)

Variables

There are several variables you can use. All variables start with a % sign.

  • %kit - Returns name of kit selected. (Works for permission-message, money-message, and commands)
  • %player - Returns player's name who selected the kit. (Works for comamnds)
  • %cost - Returns cost of kit selected. (Works for money-message)

Example use for a command: - broadcast %player has selected the %kit kit!

If I were the player that selected the kit, and the kit I chose was called "Archer", the output would be: MCMastery has selected the Archer kit!

Default Config.yml

# kit-list is a list of all the kits in use.
# YOU MUST put EVERY kit you want to use under this list, so it is "registered".
# item syntax is the same syntax as a /give command, but without the player and the /give parts.
# For help on item meta (display names, enchantments, etc.) go to http://www.minecraftforum.net/topic/2247184-minecraft-17-tellraw-formatting-summon-and-give-metadata-help/
# For a list of enchantment IDs, go to http://www.minecraftforum.net/topic/1711629-enchantment-id-list/
# item syntax: - <ItemID> [Amount] [ItemMeta]
# The display-prefix is the prefix before each message.
# The permission-message is what's displayed when a player does not have permission to use a kit.
# The money-message is what's displayed when a player does not have enough money to use a kit.

# If you do not want to use commands for a kit, just remove that section.
# The gui-position is it's position in the selector. Ranges from 1-18.
display-prefix: '&7[&8Just&2&lKits&7]'
permission-message: '&4You do not have permission to use the %kit kit!'
money-message: '&4You do not have enough money to use the %kit kit!'

kit-list:
  - Archer
kits:
  Archer:
    item-id: 261
    enchanted: false
    gui-position: 1
    cost: 24.99
    items:
      - 261 1
      - 298 1
      - 299 1
      - 300 1
      - 301 1
    commands:
      - broadcast %player has chosen the %kit kit!

Commands

  • /justkits - Base command. Aliases: /jk
  • /justkits help - Displays help page. Aliases: /justkits ?
  • /justkits select - Displays the kit selector. Aliases: /justkits choose, /justkits kits, /justkits list

Requirements

Requires Vault to function (for economy).

Permissions

Permissions are simple. The format is:

  • justkits.kits.KITNAME

Replace KITNAME with the name of the kit you want them to be able to use (case-sensitive!).

If you want them to be able to use all the kits, use:

  • justkits.kits.*

OPs are given access to all kits.

Creating a new kit (brief TUT)

  1. Copy the default archer kit and paste it underneath everything.
  2. Rename it to whatever you want.
  3. Modify, remove, or add items to the kit, following YML formats.
  4. Change how much it costs if you want.
  5. Change its GUI-Position. If they are both on the same position, both of them won't get displayed.
  6. Change if it is displayed enchanted or not.
  7. Change its commands, or remove that section. Once you are finished, add it to the kit-list (if you want it to be enabled).

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files