Skip to content

Instantly share code, notes, and snippets.

@tehbeard
Created August 14, 2012 15:31
Show Gist options
  • Select an option

  • Save tehbeard/3350296 to your computer and use it in GitHub Desktop.

Select an option

Save tehbeard/3350296 to your computer and use it in GitHub Desktop.
private static Novaember main;
public static Novaember getMain() { return main; }
public EventListener(Novaember main) {
this.main = main;
}
@EventHandler(priority = EventPriority.MONITOR)
public void playerLogin(PlayerLoginEvent event) {
Final PlayerLoginEvent rEvent = event;
main.getServer().getScheduler().scheduleAsyncDelayedTask(main, new Runnable() {
public final void run() {
try {
PlayerLoginEvent event = rEvent;
Novaember main = EventListener.getMain();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment