Update UHCWorld.php

This commit is contained in:
XShockinFireX 2016-06-10 16:49:35 -04:00 committed by GitHub
parent d723eba1f6
commit 028a8e6c09
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
# | | | | __ | | # | | | | __ | |
# | |__| | | | | |____ # | |__| | | | | |____
# \____/|_| |_|\_____| # \____/|_| |_|\_____|
# The most customisable UHC plugin for Minecraft PE ! # The most customisable UHC plugin for Minecraft PE!
namespace Ad5001\UHC ; namespace Ad5001\UHC ;
use pocketmine\command\CommandSender; use pocketmine\command\CommandSender;
use pocketmine\command\Command; use pocketmine\command\Command;
@ -45,7 +45,7 @@ class UHCWorld {
foreach($players as $player) { foreach($players as $player) {
if(!in_array($player, $this->players)){ if(!in_array($player, $this->players)){
foreach($this->players as $pl) { foreach($this->players as $pl) {
$pl->sendMessage(Main::PREFIX . C::YELLOW . "{$player->getName()} leaved the game."); $pl->sendMessage(Main::PREFIX . C::YELLOW . "{$player->getName()} left the game.");
} }
} }
} }
@ -60,4 +60,4 @@ class UHCWorld {
$this->players = $players; $this->players = $players;
return true; return true;
} }
} }