I am currently writing a StartKick plugin, but it crashes when loading with a very strange error message...
You are setting up your listener function incorrectly, please take a look at other plugins as a reference. Also using sleep() is not recommended, because it will freeze your whole server.
Is this wrong? PHP: $this->getServer()->getPluginManager()->registerEvents($this, $this); Edit: Ive also implements Listener Edit2: But how can I do something for a minute?
You should write your listener function like so: PHP: private function CloseChat(PlayerChatEvent $event){ // crap} As for the error, there's probably a syntax error somewhere near the top of your plugin. Could you send the whole file? You can use scheduled (repeating/delayed if needed) tasks or even async tasks if you need to do something that needs to run for a certain amount of time. Although if you need a whole minute or longer, I suggest that you don't use async task as this would clog your async pool.