Home›Java›Mods›Turf Wars Lobby Add-On
TURF WARS
LOBBY ADD-ON

Turf Wars Lobby Add-on is a small plugin that aims to allow using Turf Wars API from a server where it isn't installed.
It only works for stats stored in MySQL!
You can use this for
example to have a Leaderboard using Leaderheads plugin in your lobby!

Setup
To use it, you need to have your stats stored in MySQL.
So once it's done, in your other server where Turf Wars isn't installed, like your lobby, install the plugin. Reload, configure it through config.yml, it's explained in it. Then reload again, check it could connect and it's good :)

How to use Turf Wars API??
Here is an example code.
​
Code (Text):
TurfWarsAPI api;

public void onEnable() {
  api = TurfWars.getAPI();

  for(Player player : Bukkit.getOnlinePlayers())
    Bukkit.broadcastMessage(player.getName() + " has " + api.getKills(player.getUniqueId()) + " kills!");
}
Also don't forget to add "depend: [TurfWars]"
In your plugin.yml

Need help using it? Contact me in Discussion page :)
​
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Turf Wars Lobby Add-On is a free Minecraft Java mod. Downloaded 439 times (via Spigot). Download it and open it directly in the game.

Explore more