From c838ea813cfd7dc6f0100c0ef947271be88ad641 Mon Sep 17 00:00:00 2001 From: BlueGamesNetwork <142659461+Terpz710@users.noreply.github.com> Date: Tue, 21 Nov 2023 23:29:43 -0800 Subject: [PATCH 1/2] Fix --- src/philipshilling/alwaysspawn/Loader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/philipshilling/alwaysspawn/Loader.php b/src/philipshilling/alwaysspawn/Loader.php index f25a45c..14d7a96 100644 --- a/src/philipshilling/alwaysspawn/Loader.php +++ b/src/philipshilling/alwaysspawn/Loader.php @@ -3,6 +3,7 @@ namespace philipshilling\alwaysspawn; use pocketmine\event\Listener; +use pocketmine\event\player\PlayerJoinEvent; use pocketmine\event\player\PlayerLoginEvent; use pocketmine\plugin\PluginBase as Plugin; @@ -11,8 +12,7 @@ public function onEnable(): void{ $this->getServer()->getPluginManager()->registerEvents($this, $this); } - public function onPlayerLogin(PlayerLoginEvent $event){ + public function onPlayerJoin(PlayerJoinEvent $event){ $event->getPlayer()->teleport($this->getServer()->getWorldManager()->getDefaultWorld()->getSafeSpawn()); } - -} \ No newline at end of file +} From b64e7e84b45ad9ca7474897e38ce8e01b257b3f9 Mon Sep 17 00:00:00 2001 From: BlueGamesNetwork <142659461+Terpz710@users.noreply.github.com> Date: Fri, 1 Dec 2023 00:06:45 -0800 Subject: [PATCH 2/2] Update plugin.yml --- plugin.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.yml b/plugin.yml index af9376b..f2c8f88 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,7 +1,7 @@ name: AlwaysSpawn authors: [Philip Shilling] -version: 2.2.4 -api: [4.0.0] +version: 2.2.5 +api: [5.0.0] main: philipshilling\alwaysspawn\Loader load: STARTUP -description: "Force your users to spawn every time they login!" \ No newline at end of file +description: "Force your users to spawn every time they login!"