From dcd01f7830c908dcf2d9ad60d1ec294eaaaee925 Mon Sep 17 00:00:00 2001 From: Pub4Game Date: Sun, 3 Apr 2016 09:04:45 +0400 Subject: [PATCH] Update RegionBlocker.php * Update RegionBlocker.php * Update RegionBlocker.php Cosmetic changes --- src/minereset/RegionBlocker.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/minereset/RegionBlocker.php b/src/minereset/RegionBlocker.php index 769d41d..a0d976d 100644 --- a/src/minereset/RegionBlocker.php +++ b/src/minereset/RegionBlocker.php @@ -5,6 +5,7 @@ use pocketmine\event\player\PlayerMoveEvent; use pocketmine\level\Level; use pocketmine\math\Vector3; +use pocketmine\utils\TextFormat; class RegionBlocker implements Listener{ /** @var MineReset */ @@ -19,7 +20,7 @@ public function onPlayerMove(PlayerMoveEvent $event){ foreach($this->activeZones[$event->getPlayer()->getLevel()->getId()] as $zone){ if($this->isInsideZone($event->getTo(), $zone[0], $zone[1])){ $event->setCancelled(); - $event->getPlayer()->sendMessage("You can't go in there, a mine is resetting."); + $event->getPlayer()->sendMessage(TextFormat::RED . "You can't go in there, a mine is resetting." . TextFormat::RESET); return; } } @@ -52,4 +53,4 @@ protected function clearZone($level, $id){ } } } -} \ No newline at end of file +}