Last active
June 12, 2017 06:49
-
-
Save HelixOW/573a3aac80134c69e0979dc8a08288c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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