From 9020ea3fb1b7ef75514fc1877a3faa3c76897fb4 Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 24 Dec 2015 12:21:16 -0500 Subject: [PATCH] Updated Stats/chat design I've addedd color to the stats page, Which will get display when /sg stats comman d is issued. --- src/Andre/SurvivalGame/Main.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Andre/SurvivalGame/Main.php b/src/Andre/SurvivalGame/Main.php index a2aced5..a853b30 100644 --- a/src/Andre/SurvivalGame/Main.php +++ b/src/Andre/SurvivalGame/Main.php @@ -204,14 +204,22 @@ public function onCommand(CommandSender $sender, Command $command, $label, array $deaths = $this->points->get($player)[0]; $kills = $this->points->get($player)[1]; $points = $this->points->get($player)[2]; - $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] You have " .$deaths. " deaths and " .$kills. " kills. "); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §l§f--[[§e---+++---§r§f]]--"); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §bYou're stats"); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §lDeaths: §9$deaths"); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §lKills: §9$kills"); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §l§f--[[§e---+++---§r§f]]--"); return true; }else{ $player = $args[1]; $deaths = $this->points->get($player)[0]; $kills = $this->points->get($player)[1]; $points = $this->points->get($player)[2]; - $sender->sendMessage(TextFormat::RED . "[{$this->getConfig()->get("prefix")}]" .$player. " has " .$deaths. " deaths and " .$kills. " kills. "); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §l§f--[[§e---+++---§r§f]]--"); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §bPlayer: §9$player Stats"); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §lDeaths: §9$deaths"); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §lKills: §9$kills"); + $sender->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] §l§f--[[§e---+++---§r§f]]--"); return true; } }else{