Change the ######, to how much event waits before executionCode:public void statRestore(final Player p) { EventManager.getSingleton().addEvent( new Event() { public void execute(EventContainer c) { code here c.stop(); } }, ######); }
|
|


Change the ######, to how much event waits before executionCode:public void statRestore(final Player p) { EventManager.getSingleton().addEvent( new Event() { public void execute(EventContainer c) { code here c.stop(); } }, ######); }

I love you dude.
Well after you create the method for the new event where do you call it? or does it automatically get called?


how do u make it get called?
like what if you want a skull timer to go up
that involve u clicking nothing
how u make it go up?
i did this it does nothing.
Code:else if(command.equalsIgnoreCase("GGGG")){ testddd = 50; } else if(command.equalsIgnoreCase("FFFF")){ sM(""+testddd+""); } public void TESTDRRR(final Player p) { EventManager.getSingleton().addEvent( new Event() { public void execute(EventContainer c) { if (testddd > 0) { testddd--; } else { c.stop(); } } }, 3000); }
From what I know I think it is supposed to be like this:
I think the problem was you hadn't executed the event, Therefore it had no effect because the event never took place. I think I am right if not please correct me.Code:else if(command.equalsIgnoreCase("GGGG")){ testddd = 50; TESTDRRR(p); }
| « [474+ Deob] Massive TuT/Packets List [474+ Deob] | Loading Npc Defense Bonuses Through CFG! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |