Hi I was working on my plugin and I can't figure schedules out first how much is 1200 cause I need 10 minutes and how do you activate the schedule to an event like If($player tries to break//idk how tell me Return false; So I want it to return false for 10 minutes and then return true;
It counts in ticks. One tick = 1/20 second 20 ticks = 1 second 20×60 ticks = 1200 ticks = 1 minute 1200×10 ticks = 12000 ticks = 10 minutes.
I've tried just help If($player breaks a block//again Idk how Return false; $this api activate schedule If($schedule == finished? Return true Pppppllllllllllzzzzzzz help help
OK could you just help me cause I've never used schedules Is it if($player.block.break == true); Return false;
new api $event->setCancelled(true); to cancel an event , to uncancel it do $event->setCancelled(false);
PHP: $worlds = // your way, strings for world names$isInWorlds = in_array($player->getLevel()->getName(), $worlds);
Alright the last thing I need to know is how to get how much time is left until the schedule is done so I could say 5 minutes reaming and the 3 2 1 go
No it just tell me $this->api->get(schedule//that If($schedule == 5 minutes left// that also Broadcast "5minutes left"//and that but to only that world Of course this is an example I know its now like that