Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace TheDeibo\MyIPandPort;
- use pocketmine\plugin\PluginBase;
- use pocketmine\utils\Utils;
- class Main extends PluginBase {
- public function onEnable() {
- echo("Server IP : " . Utils::getIP() . "\n");
- echo("Server Port: " . $this->getServer()->getPort() . "\n");
- }
- }
Add Comment
Please, Sign In to add comment