I already wrote an Constructor but i have to change it right? PHP: public function __construct(Main $plugin){ $this->plugin = $plugin; }
Having other functions in listener files doesn't matter. However, you can make the form function a static function and call it directly. For example, PHP: // Main Filepublic static function openForm($player) {}// EventListenerMain::openForm($player); // Open form Solved?