Skip to content

Instantly share code, notes, and snippets.

@HelixOW
Last active June 12, 2017 06:49
Show Gist options
  • Save HelixOW/573a3aac80134c69e0979dc8a08288c5 to your computer and use it in GitHub Desktop.
Save HelixOW/573a3aac80134c69e0979dc8a08288c5 to your computer and use it in GitHub Desktop.
public void onEnable() {
Arena played = Arena.getArena("SG22"); //Needs the name of the map inside the arenas.yml file
played.loadArena();
Bukkit.broadcastMessage("The map " + played.getName() + " is played");
Bukkit.getPlayer("AlphaHelix").getInventory().addItem(played.getIcon().getBase());
Util.runLater(20, false, () -> {
Bukkit.getPlayer("AlphaHelix").teleport(Arena.getArena("SG22").getRealSpawns().get(0));
});
}
public void onDisable() {
Arena played = Arena.getArena("SG22"); //Needs the name of the map inside the arenas.yml file
played.deleteArena();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment