From c894026bbcdcf453dd23b39caa8957a0eacbb666 Mon Sep 17 00:00:00 2001 From: Theslowaja <67841659+Theslowaja@users.noreply.github.com> Date: Sun, 13 Feb 2022 20:12:58 +0700 Subject: [PATCH] p --- src/Theslowaja/AntiToolbox/Main.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Theslowaja/AntiToolbox/Main.php b/src/Theslowaja/AntiToolbox/Main.php index 5f18825..ca493cc 100644 --- a/src/Theslowaja/AntiToolbox/Main.php +++ b/src/Theslowaja/AntiToolbox/Main.php @@ -18,6 +18,7 @@ class Main extends PluginBase implements Listener{ public function onEnable(): void{ $this->saveDefaultConfig(); $this->config = new Config($this->getDataFolder() . "config.yml", Config::YAML); + $this->getServer ()->getPluginManager ()->registerEvents ( $this, $this ); } public function onLogin(PlayerLoginEvent $event){