GalaxyGamer Member Aug 10, 2018 #1 Hey, I would like to use the NukkitRunnable, but I know not how I can use this Can everyon help me with a example?
Hey, I would like to use the NukkitRunnable, but I know not how I can use this Can everyon help me with a example?
Sulfatezzz Supporter Aug 11, 2018 #2 Just like that PHP: new NukkitRunnable() { public void run() { //Your code } }.runTaskLater(YourPlugin, 20);
Just like that PHP: new NukkitRunnable() { public void run() { //Your code } }.runTaskLater(YourPlugin, 20);
GalaxyGamer Member Aug 11, 2018 #3 Okay yea that is function but it stops a short time later. I want it to go on forever.
Sulfatezzz Supporter Aug 19, 2018 #4 bobycraft said: Okay yea that is function but it stops a short time later. I want it to go on forever. Click to expand... Damn I didn't got any notification... If you still need a solution, change the methode from .runTaskLater to the following: PHP: .runTaskTimer(PLUGIN, DELAY, PERIOD);
bobycraft said: Okay yea that is function but it stops a short time later. I want it to go on forever. Click to expand... Damn I didn't got any notification... If you still need a solution, change the methode from .runTaskLater to the following: PHP: .runTaskTimer(PLUGIN, DELAY, PERIOD);