From ea9f87f20b3762902479b8acb72ba4207f8e95d6 Mon Sep 17 00:00:00 2001 From: Hancho1577 Date: Sat, 23 Nov 2019 03:07:34 +0700 Subject: [PATCH] add example --- example/plugin.yml | 6 ++++++ example/src/example/example.php | 27 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 example/plugin.yml create mode 100644 example/src/example/example.php 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); + } +}