turt2live

Untitled

Dec 9th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. onEnable(){
  2.     new MyListener(this);
  3. }
  4.  
  5. --------------- Listener:
  6.  
  7. private Plugin plugin;
  8.  
  9. public MyListener(Plugin myPlugin){
  10.     this.plugin = myPlugin;
  11. }
  12.  
  13. // Your event
  14. plugin.getServer().getScheduler().scheduleDelayedSyncTask(plugin, new Runnable(){ // ...
Advertisement
Add Comment
Please, Sign In to add comment