Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void delay(Player p, int i, Callable callable) {
- Bukkit.getScheduler().scheduleSyncDelayedTask(main, new Runnable() {
- public void run() {
- try {
- callable.call();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }, i * 20);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement