Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void addWaiting(Player player) {
- if (this.delay.contains(player)) {
- return;
- }
- this.delay.add(player);
- new Timer().schedule(new TimerTask() {
- public void run() {
- delay.remove(player);
- cancel();
- }
- }, 1000 * 2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement