Configuration
NHubPvP is fully configurable through multiple YAML files.
Main files:
config.ymlitems.ymlmessages.ymlmenu.yml
config.yml
Section titled “config.yml”Controls core behavior and systems.
Database
Section titled “Database”database: type: H2 # H2 or MYSQL
mysql: host: localhost port: 3306 database: nhubpvp username: root password: passwordH2→ File-based database (default)MYSQL→ Recommended for large servers
Kit Settings
Section titled “Kit Settings”kit: sword-slot: 0Defines the hotbar slot (0–8) where the PvP sword is enforced.
Activation Settings
Section titled “Activation Settings”activation: hold-seconds: 3 deactivate-seconds: 3hold-seconds→ Time required holding the sword to activate PvPdeactivate-seconds→ Time required away from sword to deactivate PvP
Ability
Section titled “Ability”ability: enabled: true cooldown: 10 damage: 4.0 fire-ticks: 60 through-blocks: falseenabled→ Enables right-click abilitycooldown→ Cooldown in secondsdamage→ Damage dealtfire-ticks→ Duration of fire effectthrough-blocks→ Whether projectile ignores blocks
Shield
Section titled “Shield”shield: enabled: trueIf enabled, players receive a shield when PvP mode is active.
Settings
Section titled “Settings”settings: instant-heal-on-kill: trueIf enabled, killer receives:
- Full health
- Full food
- Fire removal
Sounds
Section titled “Sounds”sounds: activation: activating: UI_BUTTON_CLICK activated: ENTITY_PLAYER_LEVELUP deactivating: UI_BUTTON_CLICK deactivated: BLOCK_NOTE_BLOCK_BASSControls sounds played during activation and deactivation.
items.yml
Section titled “items.yml”Controls PvP equipment.
items: sword: material: DIAMOND_SWORD amount: 1 displayname: "&6PvP Sword" lore: - "&7Hold to activate PvP" custom-model-data: -1 hide-attributes: true enchants: - DAMAGE_ALL:1 helmet: material: DIAMOND_HELMET enchants: []
chestplate: material: DIAMOND_CHESTPLATE enchants: []
leggings: material: DIAMOND_LEGGINGS enchants: []
boots: material: DIAMOND_BOOTS enchants: []All armor pieces support:
- Material
- Enchantments
- Custom model data
- Hidden attributes
messages.yml
Section titled “messages.yml”Controls all plugin messages.
Examples:
messages: reload: "&aConfiguration reloaded." no-permission: "&cYou do not have permission." unknown: "&cUnknown command."All messages support color formatting.
menu.yml
Section titled “menu.yml”Controls GUI layout and appearance.
Sections include:
- Editor menu
- Armor selector
- Sword selector
- Enchant menu
- Shield toggle
- GUI titles
- Slot positions
- Display names
- Lore
All GUI elements are fully customizable.
Reloading
Section titled “Reloading”Use:
/nhubpvp reloadThis reloads:
- config.yml
- items.yml
- messages.yml
- menu.yml
All players are safely reset after reload.