Skip to content

config.yml

Milan edited this page Jul 25, 2023 · 25 revisions

The main configuration for KitPvP which manages many different aspects of how the plugin operates.

Please be sure to read this page as thoroughly as possible before reaching out to anyone for assistance. The following sections are displayed in order of appearance.

A copy of the default config.yml can be found here.

Index

Items Settings

Chat Settings

Combat Settings

Kill Settings

Death Settings

Respawn Settings

PlayerTracker Settings

Soups Settings

TNT Settings

Preview Menu Back Arrow Settings

Commands Settings

Storage Settings

Arena Settings

Other Settings

Descriptions

Items

Items given upon joining an arena, clearing a kit, or respawning. To give no arena items altogether, set the Items section to the following:

Items: {}

Otherwise, besides the two default items, custom arena items can also be added. A sample custom arena item is included at the end of this section.

  • Kits - section relating to the kit item
    • Enabled - whether to give this item at all
    • Name - name of the kit item
    • Material - the type of material used for the kit item
    • Slot - inventory item slot where the kit item is given (0 is the first slot, 1 is the second slot, and so on)
    • Menu - whether to open the built-in KitPvP kit menu
    • Commands - typical Command format, can include commands to open a menu from an external menu plugin
  • Leave - section relating to the leave item
    • Enabled - whether to give this item at all
    • Name - name of the leave item
    • Material - the type of material used for the leave item
    • Slot - inventory item slot where the leave item is given (0 is the first slot, 1 is the second slot, and so on)
    • BungeeCord - allows the leave item to send a player to a specific BungeeCord server, disable if not using BungeeCord
      • Server - the exact (including case) server name to send the player to
      • Enabled - whether to enable sending the player to a BungeeCord server (if not using BungeeCord, disable this)
    • Commands - typical Command format, can include commands to send teleport/send a player to a different world if not using BungeeCord
Example custom arena item
Items:
  Shop:
    Enabled: true # whether the item is enabled
    Name: '&aShop (&7Right Click)' # name of the item
    Item: EMERALD # material of the item
    Slot: 4 # slot of the item, the 1st slot of a player's inventory is 0
    Commands:
    - 'player: shop' # these are commands, this particular command runs /shop from the player
    - 'console: say %player% used the shop item' # this command runs /say from the console
File Snippet
Items:
  Kits:
    Enabled: true
    Name: '&aKit Selector &7(Right Click)'
    Material: CHEST
    Slot: 0
    Menu: true
    Commands: []
  Leave:
    Enabled: true
    Name: '&aReturn to Hub &7(Right Click)'
    Material: WATCH
    Slot: 8
    BungeeCord:
      Server: Hub
      Enabled: true
    Commands: []

Chat

Manages how the chat appears in arena worlds.

  • Format - the chat format which supports PlaceholderAPI placeholders
    • %level% - the current level number of the player
    • %player% - the username of the player
    • %message% - the chat message
  • Enabled - whether to enable the chat format
Displaying rank prefixes

Install PlaceholderAPI and Vault, then run /papi ecloud download Vault. Afterwards, simply add %vault_prefix% anywhere in the chat format, and it will display the prefix.

File Snippet
Chat:
  Format: '%level% &e%player% &f%message%'
  Enabled: true

CombatHitSound

Sound played when a player hits another player.

This section follows a typical KitPvP Sound format.

File Snippet
  HitSound:
    Sound: BLAZE_HIT
    Pitch: 1
    Enabled: true

CombatArrowHit

Message sent to a shooter when an arrow shot hits another player, displaying their target's health.

A shooter must have the permission kp.arrowmessage in order for this message to display.

  • Message - message sent to the shooter
    • %player% - name of the shot player
    • %health% - health of the shot player
  • Enabled - whether to enable this feature
File Snippet
  ArrowHit:
    Message: '%prefix% &b%player% &7is on &c%health%&7.'
    Enabled: true

CombatArrowReturn

Rewards a successful arrow shot with another arrow to the shooter's inventory.

A shooter must have the permission kp.arrowreturn in order to receive an arrow.

  • ItemName - name of the arrow given to the player upon their successful shot
  • NoSpace - message sent to a player if there is not enough space in their inventory to add an arrow
  • Enabled - whether to enable this feature
File Snippet
  ArrowReturn:
    ItemName: '&eReturnable Arrow'
    NoSpace: '%prefix% &cYou must have at least one slot open in your inventory for you to receive your arrow for your successful shot.'
    Enabled: true

KillSoupReward

Rewards a player with a configurable amount of soups after killing another player.

  • NoSpace - message sent to a player if there is not enough space in their inventory to add a new soup
    • %amount% - amount of soups
  • Amount - amount of soups given upon killing another player
  • Delay - amount of time to delay giving the soups after a kill (in seconds)
  • Enabled - whether to enable this feature
File Snippet
  SoupReward:
    NoSpace: '%prefix% &c%amount% soups could not be added to your full inventory.'
    Amount: 1
    Delay: 0
    Enabled: true

KillCommands

Commands run upon kill in an arena.

Please note: commands in this section must use %killer%, not %player%

This section follows a typical KitPvP Command format.


DeathTitle

The death title displayed when a player dies if FancyDeath is enabled.

  • Title - main title message
  • Subtitle - subtitle message
  • Time - respawn cooldown amount of time (in seconds)
  • Message - message displayed upon respawn
File Snippet
  Title:
    Title: '&c&lYOU DIED!'
    Subtitle: '&7You will respawn in %seconds% seconds.'
    Time: 5
    Message: '%prefix% &7Respawning...'

DeathSound

The sound played globally when a player dies.

This section follows a typical KitPvP Sound format.

File Snippet
  Sound:
    Sound: AMBIENCE_THUNDER
    Pitch: 1
    Enabled: false

DeathCommands

Commands run upon death in an arena.

Please note: commands in this section must use %victim%, not %player%

This section follows a typical KitPvP Command format.


DeathMessages

Death messages sent in chat upon death.

  • Enabled - whether death messages are sent in chat at all
File Snippet
  Messages:
    Player: '%prefix% &b%victim% &7was killed by &b%killer% &7(&c%killer_health%&7).'
    Shot: '%prefix% &b%victim% &7was shot by &b%killer% &7(&c%killer_health%&7).'
    Fall: '%prefix% &b%victim% &7fell to their doom.'
    Void: '%prefix% &b%victim% &7died from the void.'
    Fire: '%prefix% &b%victim% &7died from fire.'
    Explosion: '%prefix% &b%victim% &7blew up.'
    Suicide: '%prefix% &b%victim% &7killed themselves.'
    Unknown: '%prefix% &b%victim% &7died.'
    Enabled: true

RespawnCommands

Commands run upon respawn in an arena.

This section follows a typical KitPvP Command format.


PlayerTracker

This section manages all Player Tracker (compass) options.

  • Name - name of the Player Tracker item
  • Message - the message shown on the compass when tracking begins
    • %nearestplayer% - name of the nearest player
    • %distance% - distance (in blocks) of the nearest player
  • NoneOnline - message displayed if there are no kitted players in the arena
  • TrackBelowY - for servers with high spawns, this option makes the tracker only track below a certain y-coordinate to avoid tracking players outside of the arena
  • RefreshOnlyWhenHeld - if enabled, the Player Tracker will only refresh tracking when the item is held by the player - improving performance. If disabled, the player tracker will constantly refresh even when not being held by the player
File Snippet
  Name: '&aPlayer Tracker'
  Message: '&b&lTarget: &3%nearestplayer% &b&lDistance: &3%distance%'
  NoneOnline: '&cNo Players Online'
  TrackBelowY: 128

Soups

This section manages soups within arenas.

  • Name - name of the soup item. If a mushroom stew item does not have this name it will be treated like a normal mushroom stew item
  • RegenAmount - amount of health given upon soup use. 1 = half a heart, therefore 6 = 3 hearts
  • RemoveAfterUse - whether to remove the soup entirely from the inventory after use, or to place an empty soup (bowl)
  • Lore - lore of a soup
  • Sound - sound played to the player when a soup is used
  • Pitch - pitch of the sound played when a soup is used
  • Enabled - whether to enable soups at all
File Snippet
Soups:
  Name: '&aRegenerative Soups &7(Right Click)'
  RegenAmount: 6
  RemoveAfterUse: true
  Lore:
  - '&7Use this item to regain health.'
  Sound: EAT
  Pitch: 1
  Enabled: true

TNT

This section manages KitPvP's custom TNT.

  • Name - name of the TNT item. If a TNT item does not have this name it will be treated like a normal block of TNT
  • Enabled - whether to enable custom TNT at all
File Snippet
TNT:
  Name: '&aThrowable TNT &7(Right Click)'
  Enabled: true

PreviewMenuBackArrowCommands

The commands that are executed when clicking the "Back" arrow in the kit preview menu.

File Snippet
PreviewMenuBackArrowCommands:
- 'player: kp menu'

CommandsAlias

This section manages command aliases.

  • Spawn - whether to allow /spawn to redirect to /kp spawn
  • Kit - whether to allow /kit to redirect to /kp kit
  • Kits - whether to allow /kits to redirect to /kp kits
  • Stats - whether to allow /stats to redirect to /kp stats
File Snippet
Commands:
  Alias:
    Spawn: false
    Kit: false
    Kits: false
    Stats: false

StorageType

Which type of data storage to use for the stats and kit cooldown systems.

Options:

  • sqlite - use SQLite, a local flatfile-based database, which will generate a storage.db file under ~/plugins/KitPvP
  • mysql - use MySQL, a client/server-based database, see below for options
File Snippet
  Type: sqlite

StorageMySQL

These configuration options are only applicable if Type is set to mysql. Otherwise, they will be ignored, and SQLite will be used instead.

  • Host - the MySQL host
  • Port - the MySQL port, not your server port
  • Database - the name of the MySQL database
  • Username - the MySQL username
  • Password - the MySQL password
File Snippet
Storage:
  Type: sqlite
  MySQL:
    Host: 127.0.0.1
    Port: 3306
    Database: kitpvp
    Username: root
    Password: password

ArenaClearPotionEffectsOnJoin

Whether to clear potion effects on arena join.

File Snippet
  ClearPotionEffectsOnJoin: true

ArenaClearInventoryOnJoin

Whether to clear inventory on arena join.

File Snippet
  ClearInventoryOnJoin: true

ArenaClearInventoryOnLeave

Whether to clear potion effects on arena leave.

File Snippet
  ClearInventoryOnLeave: false

ArenaClearInventoryOnRespawn

Whether to clear inventory on respawn in an arena.

File Snippet
  ClearInventoryOnRespawn: true

ArenaClearInventoryOnKit

Whether to clear inventory upon kit selection.

File Snippet
  ClearInventoryOnKit: true

ArenaClearKitOnCommandSpawn

Whether to clear kit after teleported to spawn using /kp spawn or /spawn (only /spawn if the Alias is enabled)

File Snippet
  ClearKitOnCommandSpawn: true

ArenaPreventBlockBreaking

Whether to prevent block breaking in an arena.
Bypass permission: kp.arena.blockbreaking

File Snippet
  PreventBlockBreaking: true

ArenaPreventBlockPlacing

Whether to prevent block placing in an arena.\n Bypass permission: kp.arena.blockplacing

File Snippet
  PreventBlockPlacing: true

ArenaPreventItemDropping

Whether to prevent item dropping in an arena. Bypass permission: kp.arena.itemdropping

File Snippet
  PreventItemDropping: true

ArenaPreventHunger

Whether to prevent hunger loss in an arena.

File Snippet
  PreventHunger: true

ArenaPreventItemDurabilityDamage

Whether to prevent item durability damage. If enabled, all items used in an arena will be made unbreakable.

File Snippet
  PreventItemDurabilityDamage: false

ArenaPreventChestOpen

Whether to prevent chests from opening in an arena.

File Snippet
  PreventChestOpen: true

ArenaPreventFallDamage

Whether to prevent fall damage in an arena.

File Snippet
  PreventFallDamage: false

ArenaPreventDeathDrops

Whether to prevent player items from being dropped upon a player's death in an arena.

File Snippet
  PreventDeathDrops: true

ArenaKeepWeatherAtSunny

Whether to keep the weather at sunny in an arena.

File Snippet
  KeepWeatherAtSunny: true

ArenaPreventArenaSignUseWithKit

Whether to prevent the usage of arena signs (only arena signs!) if the player has a kit.

File Snippet
  PreventArenaSignUseWithKit: true

ArenaGiveItemsOnClear

Whether to give items (from the Items section, ex: kit item, leave item) on /kp clear.

File Snippet
  GiveItemsOnClear: true

ArenaGiveItemsOnRespawn

Whether to give items (from the Items section, ex: kit item, leave item) on respawn in an arena.

File Snippet
  GiveItemsOnRespawn: true

ArenaGiveItemsOnJoin

Whether to give items (from the Items section, ex: kit item, leave item) on arena join.

File Snippet
  GiveItemsOnJoin: true

ArenaNoKitProtection

If enabled, players without kits cannot hurt any other players. Players with kits are also unable to hurt players without kits. This system can be disabled entirely by disabling this option, and this option is only applicable in an arena.

File Snippet
  NoKitProtection: true

ArenaFancyDeath

Whether to put a player in spectator mode and enable a respawn cooldown after death in an arena.

File Snippet
  FancyDeath: true

ArenaResetKillStreakOnLeave

Whether to reset a player's kill streak after leaving an arena or server.

File Snippet
  ResetKillStreakOnLeave: true

ArenaToSpawnOnJoin

Whether to teleport a player to the arena spawn upon arena join.

File Snippet
  ToSpawnOnJoin: true

ArenaDeathParticles

Whether to spawn red particles at a player's death point in an arena.

File Snippet
  DeathParticles: true

ArenaAbilitiesRequireKit

Whether a kit is required to use an ability.

File Snippet
  AbilitiesRequireKit: true

ArenaAddOverflowItemsOnKit

If enabled, if an item's designated slot is already occupied when selecting a kit, KitPvP will try to place the new item in any open available slot in the inventory, unless the player's inventory is full. If disabled, if an item's designated slot is already occupied when selecting a kit, the new item will be lost.

File Snippet
  AddOverflowItemsOnKit: true

ArenaDropRemainingOverflowItemsOnKit

If enabled, if a player's inventory is full when selecting a kit, any remaining new kit items will be dropped on the ground at the player's feet. If disabled, if a player's inventory is full when selecting a kit, any remaining new kit items will be lost.

File Snippet
  DropRemainingOverflowItemsOnKit: true

OtherAutomaticallyAddKitToMenu

Automatically creates an entry in the menu.yml after creating a kit.

File Snippet
  AutomaticallyAddKitToMenu: true
Clone this wiki locally