Advertisement
Guest User

Untitled

a guest
Mar 10th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public class Class1 {
  2. int scheduler = -1;
  3. DeinPlugin plugin;
  4.  
  5. public Class1(DeinPlugin plugin) {
  6. this.plugin = plugin;
  7. }
  8.  
  9. public void startScheduler() {
  10. scheduler = plugin.getServer().getScheduler().scheduledSyncRepeatingTask(this, new Runnable() {
  11.  
  12. @Override
  13. public void run() {
  14. //Code des Schedulers
  15. }
  16.  
  17. }, 0, 2000);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement