WarPlus Configuration - james9909/WarPlus GitHub Wiki

config.yml defines all global configuration settings. Most of these may be overridden in individual warzone config files.

classes

List of class names to default to. If empty/non-existent, default to all classes as defined in classes.yml.

global

Global WarPlus settings that don't involve warzones.

  • prefix: <some prefix>: The prefix to use for WarPlus messages. Supports color codes.
  • restore-player-location: <true|false>: If true, teleport the player back to the location where they originally joined the warzone from. Otherwise, they will teleport to the current world's spawn.
  • allowed-commands: <list of strings>: List of commands that may be executed. This supports base commands such as /wp, /ma, etc.

database

Database config. Currently only supports MySQL and SQLite.

  • enabled: <true|false>: Whether or not to use a database.
  • dialect: <mysql|sqlite>: The type of database to use.
  • server: <ip address or hostname>: The IP address or hostname of the server that the database is running on.
  • port: <number>: The port that the database is exposed through.
  • database-name: <name>: The name of the database to use.
  • username: <username>: The username to authenticate as. Only required for MySQL.
  • password: <password>: The password to use when authenticating. Only required for MySQL.

The default WarPlus config file:

global:
  prefix: "&7WarPlus>&f "
  database:
    enabled: false
    dialect: mysql
    server: localhost
    port: 3306
    database-name: WarPlus
    username: root
    password: root
  restore-player-location: true
  allowed-commands:
    - /help
warzone:
  default:
    config:
      block-heads: true
      can-break-blocks: true
      class-cmd: ""
      death-messages: true
      enabled: true
      max-health: 20
      min-teams: 1
      item-drops: false
      monument-heal: 1
      monument-heal-chance: 0.2
      remove-entities-on-reset: true
      reset-on-empty: true
team:
  default:
    config:
      default-class: ""
      econ-reward: 5
      lives: 20
      max-players: 20
      max-score: 5
      min-players: 1
      hunger: true
      place-blocks: true
      spawn-style: small
⚠️ **GitHub.com Fallback** ⚠️