It's too easy. Just download jar and replace it to plugins folder. Then start the server.
How to add this plugin as dependency in my IDE:
If you use Maven you should add:
<dependency>
<groupId>com.github.qumasso</groupId>
<artifactId>arena-restorer</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>system</scope>
<systemPath>C:\Path\To\This\Plugin\Jar\arena-restorer-1.0-SNAPSHOT.jar</systemPath>
</dependency>
into your dependencies tag.
If you don't use Maven then you simply should add this plugin jar to external libraries to your project.
Generally you should add:
depend:
- ArenaRestorer
into your plugin.yml
Commands:
/setarena <arena-name> <1 | 2>
Creates the config file linked with this arena name. You should mark two points before calling /savearena.
/savearena <arena-name>
Writes the data of arena in linked with this arena name file. It requires two points selected by /setarena.
/deletearena <arena-name>
Deletes the file linked with this arena name.
/restorearena <arena-name>
Restore the data of arena in provided world. It requires /setarena and /savearena before executing this one.
API:
public void saveArenaData(String arenaName);
Saves the data of arena in arenaName.yml file. The action is similar to /savearena. This requires /setarena executed by player before. Otherwise it will do nothing.
public void restoreArenaData(String arenaName);
Restores the data of arena from arenaName.yml file. The action is similar to /restorearena. This requires /setarena and /savearena(or saveArenaData()) executed by player before. Otherwise it will do nothing.
public boolean hasArena(String arenaName);
Checks if there is existing file like arenaName + ".yml" in the data folder of restorer plugin.