Advertisement
Legt_Gaming1

Untitled

Apr 19th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public void delay(Player p, int i, Callable callable) {
  2. Bukkit.getScheduler().scheduleSyncDelayedTask(main, new Runnable() {
  3. public void run() {
  4. try {
  5. callable.call();
  6. } catch (Exception e) {
  7. e.printStackTrace();
  8. }
  9. }
  10. }, i * 20);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement