API for creating mini-games in minecraft. Made by The Asgard with love 💙
Requires Minecraft 1.16.5 or higher. Works with PaperMC, SpigotMC, MohistMC, CraftBukkit etc.
<dependencies>
<dependency>
<groupId>fun.asgard</groupId>
<artifactId>TAGA</artifactId>
<version>v1.2.0</version>
</dependency>
</dependencies>
repositories {
mavenCentral()
}
dependencies {
implementation 'fun.asgard:TAGA:v1.2.0'
}
PLEASE READ OUR DOCUMENTATION ALSO! THIS GUIDE IS NOT ALL THE POSSIBILITIES OF OUR API!
public TAGA taga = new TAGA(this);
// |Get the world| |Game name| |Game time| Game game = this.taga.getGameManager().createGame(Bukkit.getWorld("world"), "ExampleGame", 5 * 60 * 1000); // If you want when a player is kicked, he is disconnected from the game ( Default is false ) game.setKickOnLeave(true);
// |Game name| Game game = this.taga.getGameManager().getGame("ExampleGame");
// |Name| |Game| HashMap<String, Game> games = this.taga.getGameManager().getGames();
// |The player| game.connectPlayer(player);
// |The player| game.disconnectPlayer(player);
game.getPlayers();
game.start()
// Stop the game and save the world (Write false if you don't want to save the world) game.stop(true)
// If you don't want the GameStopEvent to work game.shutdown()
game.runGameTask(() -> { game.getPlayers().forEach(player -> player.sendMessage("1 minute of the game has passed")) //|Delay| |Period| }, 1000, 60 * 1000)
PLEASE READ OUR DOCUMENTATION ALSO! THIS GUIDE IS NOT ALL THE POSSIBILITIES OF OUR API!
If you have any problems, write to us in the