Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new BukkitRunnable() {
- int timeLeft = 4;
- public void run() {
- //do stuff
- if(--timeLeft <= 0) this.cancel();
- }
- }.runTaskTimer(this, 20L, 20L);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement