This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b1afea
commit ea9f87f
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: example | ||
author: example | ||
main: example\example | ||
api: | ||
- 3.1.4 | ||
version: 1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace example; | ||
|
||
/** | ||
* 테스트 되지 않음 | ||
* 플레이어 서버 퇴장시 밴드에 글로 알림 | ||
**/ | ||
|
||
use pocketmine\utils\Config; | ||
use pocketmine\plugin\PluginBase; | ||
use pocketmine\event\Listener; | ||
use pocketmine\command\CommandSender; | ||
use pocketmine\command\Command; | ||
use pocketmine\event\player\PlayerQuitEvent; | ||
|
||
class example extends PluginBase implements Listener | ||
{ | ||
public function onEnable() | ||
{ | ||
$this->getServer()->getPluginManager()->registerEvents($this, $this); | ||
} | ||
public function onQuit(PlayerQuitEvent $ev) | ||
{ | ||
$this->getServer()->getPluginManager()->getPlugin("bandAPI_hc")->writePost($ev->getPlayer()->getName() . "님이 서버에서 퇴장하셨습니다.", "여기에 band_key의 값을 입력하세요.", false); | ||
} | ||
} |