Skip to content

Instantly share code, notes, and snippets.

@yesitswalid
Last active December 7, 2015 06:27
Show Gist options
  • Save yesitswalid/8375cb42e3be32fd02cc to your computer and use it in GitHub Desktop.
Save yesitswalid/8375cb42e3be32fd02cc to your computer and use it in GitHub Desktop.
PopupJoin - Auto-generated gist plugin stub by pmt.mcpe.me InstaPlugin
<?php
namespace wiligangster\PopupJoin;
use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\utils\TextFormat;
use pocketmine\plugin\PluginBase;
use pocketmine\Player;
class Main extends PluginBase{
public function onEnable(){
}
public function onPlayerJoinEvent (PlayerJoinEvent $event){
$player = $event->getPlayer();
$player->sendPopup(TextFormat::GREEN. "Hi, welcome to server") ;
}
}
---
name: PopupJoin
author: TutoGamerWalid
version: "1.0"
api:
- 1.12.0
main: wiligangster\PopupJoin\Main
commands: []
permissions: []
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment