How to use Battlefield
In this Tutorial I will show you all commands and settings of the Battlefield Plugin.
General Commands
At first start with the Gamemodes. Currently there is only one Gamemode: Team Deathmatch. In this mode the first team which reaches the kill limit wins.
To start a new round, type: /start <gamemode> For Gamemode just fill in "tdm", so then a Tdm round gets created. Wait a few moments and then it says "round started".
Now you should type /list or /gamelist to see all open and running games. You can also see the name of the game you just created.
For the next step type /join <gamename>. The gamename is usally tdm + count, so the first one is "tdm1" going up as long as you want.
When you now join you get teleported to the lobbyworld which has to be designed in the future. At the moments its just a duplicate of the default world. The lobby phase is usually 60 seconds long, but you can change that in the config. More about that later. So in the lobby phase other players can join the lobby and you can vote for different maps. How to configure maps also later.
So then the game starts. You got a default weapon, which you can shoot snowballs with. Additionally there are currently 3 gadgets you can choose from. Just try them!
Config
In the config you can change different game settings. I will explain them all now.
- Config:
- use_as_api: You can set to true if you dont want to use the game itself. You can use it then as a API only. The API will run, even if it set to false, this just disables the plugin itself. NOTE: Doesnt work correctly atm.
- file_needs_configuration Is a string which is the error message when a string needs configuration. This will be replaced with normal I18N.
- Games:
- max_player_tdm: Sets the player limit of a Tdm round.
- lobby_countdown: Sets the seconds of the lobby countdown (until the game begins)
- min_player_game_start: Is the Minum of players who joined the game, so the match can start.
Map configuration
In the maps.txt you can configure and add maps for playing them. For maps to work read Spawn configuration.
The following syntax has to be keepen at all time. (Dont write the Comments).
-Map: Is just a signal that a new map starts.
File: /world Is the the worlds directory. It gets copied out of that directory. The Directory is relative to you servers location.
Name: lobby The World name, which will be shown for the mapsvotes.
Description: This is a world The worlds description. Is not necassary for the plugin to work, but you have to keep at least a empty Description.
Spawn Configuration
Spawn configuring is pretty simple. Ingame there is one command /setspawn or /ss, which you can use for setting a spawn for the current map. There can be an infinte number of spawns per world. Make sure you stop the server correctly so the spawns also get saved. Note: You have to be in a active game (or lobby for the lobby world) to configure spawns. Spawns are saved in the spawns.csv.
Stats
Stats are automaticly recorded by the plugin and saved. After every round you can see your overall stats.
Comments