From 01e21fce3c734a8c87c5a3edfb4b678a654f0d37 Mon Sep 17 00:00:00 2001 From: PikyCZ Date: Mon, 24 Oct 2016 18:55:41 +0200 Subject: [PATCH] Update EggWars.php --- src/EggWars/EggWars.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/EggWars/EggWars.php b/src/EggWars/EggWars.php index ced9445..dc16aa3 100644 --- a/src/EggWars/EggWars.php +++ b/src/EggWars/EggWars.php @@ -301,6 +301,12 @@ public function onInteract(IE $e) $t->setText($this->signprefix, "§9[ §30 / 16 §9]", "§a§lJoin", "§8map: §7".$this->map); $this->map = ""; } + /** + uprav to k tomu kdyz clovek se pripoji na mapu + public function onJoin($event){ + $player = $event->getPlayer(); + $name = $player->getName(); + $this->getServer()->broadcastMessage("$name join to EggWars game!");**/ } }