Fixing a bug

This commit is contained in:
Adsooi 2017-03-17 13:02:52 +01:00
parent e89e769a6e
commit 703fd7ea2a
No known key found for this signature in database
GPG key ID: 359332C59162FFDC

View file

@ -149,7 +149,7 @@ class Game extends PluginTask /* Allows easy game running */ implements Listener
if($this->win == self::WIN_SEEKERS) { if($this->win == self::WIN_SEEKERS) {
$p->sendMessage(Main::PREFIX . "§aThe last hider got caught ! Seekers won !"); $p->sendMessage(Main::PREFIX . "§aThe last hider got caught ! Seekers won !");
$p->sendTip("§a§lSeekers won !"); $p->sendTip("§a§lSeekers won !");
swicth($p->HideAndSeekRole) { switch($p->HideAndSeekRole) {
case self::ROLE_HIDE: case self::ROLE_HIDE:
$this->getMain()->getServer()->dispatchCommand(new ConsoleCommandSencer(), $this->getMain()->getConfig()->get("Losers command")); $this->getMain()->getServer()->dispatchCommand(new ConsoleCommandSencer(), $this->getMain()->getConfig()->get("Losers command"));
break; break;
@ -163,7 +163,7 @@ class Game extends PluginTask /* Allows easy game running */ implements Listener
} elseif($this->win == self::WIN_HIDERS) { } elseif($this->win == self::WIN_HIDERS) {
$p->sendMessage(Main::PREFIX . "§aTimes up ! Hiders won !"); $p->sendMessage(Main::PREFIX . "§aTimes up ! Hiders won !");
$p->sendTip("§a§lHiders won !"); $p->sendTip("§a§lHiders won !");
swicth($p->HideAndSeekRole) { switch($p->HideAndSeekRole) {
case self::ROLE_SEEK: case self::ROLE_SEEK:
case self::ROLE_NEW_SEEK: case self::ROLE_NEW_SEEK:
$this->getMain()->getServer()->dispatchCommand(new ConsoleCommandSencer(), $this->getMain()->getConfig()->get("Losers command")); $this->getMain()->getServer()->dispatchCommand(new ConsoleCommandSencer(), $this->getMain()->getConfig()->get("Losers command"));