diff --git a/example/plugin.yml b/example/plugin.yml new file mode 100644 index 0000000..ec40da3 --- /dev/null +++ b/example/plugin.yml @@ -0,0 +1,6 @@ +name: example +author: example +main: example\example +api: +- 3.1.4 +version: 1.2.0 diff --git a/example/src/example/example.php b/example/src/example/example.php new file mode 100644 index 0000000..f3f7fbc --- /dev/null +++ b/example/src/example/example.php @@ -0,0 +1,27 @@ +getServer()->getPluginManager()->registerEvents($this, $this); + } + public function onQuit(PlayerQuitEvent $ev) + { + $this->getServer()->getPluginManager()->getPlugin("bandAPI_hc")->writePost($ev->getPlayer()->getName() . "님이 서버에서 퇴장하셨습니다.", "여기에 band_key의 값을 입력하세요.", false); + } +}