Configuration

Configuring config.yml


  • prefix: The message shown in front of all other messages
  • wand id: The item used to make selections - default is a music disc
  • round length: Time for the rounds to last (in seconds)
  • time until start: Time to wait after enough players have joined
  • players until start: How many players need to join before the game can start
  • plant to zombie ratio: How many plants there are compared to how many zombies there are
  • inventory: The inventory displayed with /pvz join - options are pretty self-explanatory
  • type inventory: The inventory displayed with /pvz type - also self-explanatory

Configuring messages.yml


You can colour your messages using minecraft colour codes like &a and &4. Go here for a full list.

  • no permission: '&4No permission!'
  • upgrade: '&4You cannot be this type. &2Upgrade &4to gain access to it!'
  • no command found: '&4Command not recognized!'
  • block 1 set: '&2Block 1 set.'
  • block 2 set: '&2Block 2 set.'
  • wand given: '&2Right and left click to set your first and second points.'
  • no farm given: '&4You forgot to give a name to your farm! &2/pvz create <name>.'
  • selection not set properly: '&4Both points need to be selected and in the same world.'
  • name taken: '&4There is already a farm with that name.'
  • farm created: '&2Farm created! You can now use &5/pvz add <farm> &2to create a row from your wand selection.'
  • row created: '&2Row number <row> created! Use &5/pvz set <farm> <row> zombie|plant &2to set the spawn point for zombies/plants in row <row>.'
  • now row given: '&4You did not specify a row number.'
  • which team: '&4You did not specify which team to set the spawn for. Use &8/pvz set <farm> <row> zombie &4or &8/pvz set <farm> <row> plant.'
  • row not a number: '<number> &4is not a number.'
  • no row found: '&4Row number &f<number> &4does not exist.'
  • no team found: '&4The team <team> could not be found. Use &8/pvz setspawn <farm> <row> zombie &4or &8/pvz set <farm> <row> plant.'
  • row set plant: '&2The spawn for plants on row number <row> on farm <farm> has been set.'
  • row set zombie: '&2The spawn for zombies on row number <row> on farm <farm> has been set.'
  • no farm specified: '&4You did not specify which farm you would like to use.'
  • no farm exists: '&4The farm you gave does not exist.'
  • joined plant team: '&fYou have joined the &2&lPlant Team&r.'
  • joined zombie team: '&fYou have joined the &4&lZombie Team&r.'
  • already in game: '&4You are already in another game. Please leave before trying to join a new one.'
  • starts in: 'The game starts in &4<time> &fseconds.'
  • plants won: '&fThe &2&lPlant Team&r has won!'
  • zombies won: '&fThe &4&lZombie Team&r has won!'
  • respawn: 'You will respawn in &4&l20&r seconds.'
  • endpoint set: '&2Endpoint set!'
  • game already started: '&4That game has already started.'
  • type changed: '&2You have changed your type.'
  • not right team: '&4You are not on a team that can become this type.'
  • not in a game: '&4You must be in a game to do this.'
  • game already started: '&4The game has already started. You cannot change your type now.'
  • left: '&2You are no longer in any game.'