waikiki Posted May 27, 2015 Posted May 27, 2015 (edited) Hi all i need a button special :P - a player press button and 30 sec later he have reward thx for your help :) Edited May 27, 2015 by waikiki Quote
0 SweeTs Posted May 27, 2015 Posted May 27, 2015 (edited) Create the function and delay it with a threadpool, something like ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { @Override public void run() { player.addItem("Reward", 57, 100, player, true); } }, 30000); else you coul use system time, even better. Edited May 27, 2015 by SweeTs Quote
0 Kelrzher Posted May 27, 2015 Posted May 27, 2015 if(command.equalsIgnoreCase"poutsa") { ThreadPoolManager.getInstance().scheduleGeneral(new Runnable(){ @Override public void run() { player.addItem("Reward", 57, 100, player, true); }}, 30000); } make it on voicedcommand handler Quote
0 Elfosass Posted May 28, 2015 Posted May 28, 2015 if(command.equalsIgnoreCase"poutsa") { ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { @Override public void run() { player.addItem("Reward", 57, 100, player, true); } }, 30000); } make it on voicedcommand handler you copy pasted sweets and you added one line which is also wrong. Oh my.. Quote
0 Kelrzher Posted May 28, 2015 Posted May 28, 2015 you copy pasted sweets and you added one line which is also wrong. Oh my.. vre den mas gamas k esu kserola ? exeis anoiksei 10 topic gia server k mas exeis taraksi t @@ Quote
Question
waikiki
Hi all i need a button special :P
- a player press button and 30 sec later he have reward
thx for your help :)
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.