Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mustafabinguldev/hanarenaapi

Arena system for your minigames
https://github.com/mustafabinguldev/hanarenaapi

arena arena-system java minecraft-arena-system minecraft-plugin minecraft-plugin-api spigot-api

Last synced: about 1 month ago
JSON representation

Arena system for your minigames

Awesome Lists containing this project

README

        

A perfect arena resetter and builder for your Minigames

Developers:

Owner:
https://github.com/BingulHan/

Support https://discord.gg/bingulhan

Maven:
```

jitpack.io
https://jitpack.io



com.github.BingulHan
HanArenaAPI
0.1.1

```

How to use Custom Event
```
public class TestListener implements Listener {
//Custom events.
@EventHandler
public void event(ArenaCreateEvent e) {
//TODO
}
}
```

How to use API
```

//Get API plugin
private HanArenaAPI hanArenaAPI = (HanArenaAPI) Bukkit.getServer().getPluginManager().getPlugin("HanArenaAPI");

public void testAdd(String arenaName, String sourceName) {
Arena arena = new Arena(arenaName, sourceName);
hanArenaAPI.getArenaManager().loadArena(arena);
}

public void testRemove(String arenaName) {
Arena arena = hanArenaAPI.getArenaManager().getArena(arenaName).get();
hanArenaAPI.getArenaManager().clear(arenaName);
}

public void testReset(String arenaName) {
Arena arena = hanArenaAPI.getArenaManager().getArena(arenaName).get();
hanArenaAPI.getArenaManager().resetArena(arenaName);
}
```