Games

Games

This plugin runs the games described below. It is designed to be run on its own server, meaning everything is consolidated onto the server. It is NOT meant to be run on a server where things are happening in other worlds or on other parts of the map. 

To start, you can download and use this map: click here.

Maps must be in a folder /server/plugins/QuartzDefenders/maps/<worldName>. The <worldName> you must specify in games.yml config. Read below. You cant use one map for several games.

When people join the server they will be spawned at the lobby location. (Location can be set through the config.yml (see Configuration page).


Games has 4 game states: lobby, waiting, starting, active, ending.

Lobby: waiting for minimal players count, to teleport players to the game world.
Waiting: waiting for more players; team, kit selection and voting.
Starting: countdown for game beginning.
Active: game process.
Ending: countdown to restarting the game.


When you install the QuartzDefenders  plugin, a file "games.yml" will be created in the plugin folder.

Games: {}

*Now you need to configure the games.


Below is an example of settings for one game.

** - means explanation below

Pastebin link: click here

balance_type:
valid types:
NO_BALANCE - Players can join anyone team
DEFAULT_BALANCE - Each team has no more player lead over the smallest team
TEAM_KD_BALANCE - Using stats, calculating average of team KD

difficulty:
valid types:
EASY
HARD
NORMAL
PEACEFUL

teams:
valid teams:
RED
BLUE
GREEN
YELLOW
MAGENTA
AQUA
GRAY
PINK
WHITE
BLACK

autostart:
true | false
When sum of players each team equals or bigger then players_in_team, game will start automatically, without using /game start command by administrator.

spectator_room:
true | false
Generate glass room for players before game start. 20x20x5 with center at map_spawn

locations:
For each team that you specify in teams you must specify all locations, such as spawn, quartz, shop

regenerative_blocks:
DIAMOND_ORE:
regenerate_time: 50
list:
- 281,55,294
- 296,56,282
In this section you can specify, which blocks will be regenerate. Available block types you can find here.
List contains the locations of each block. Coordinates x, y, z split by comma