Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mustafabinguldev/hanarenaapi
- Owner: mustafabinguldev
- License: mit
- Created: 2022-07-30T13:03:00.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-05T15:29:30.000Z (over 2 years ago)
- Last Synced: 2024-01-24T12:08:03.306Z (11 months ago)
- Topics: arena, arena-system, java, minecraft-arena-system, minecraft-plugin, minecraft-plugin-api, spigot-api
- Language: Java
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
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);
}
```