Skip to content

Commit

Permalink
Updated Stats/chat design
Browse files Browse the repository at this point in the history
I've addedd color to the stats page, Which will get display when /sg stats comman d is issued.
  • Loading branch information
xZeroMCPE committed Dec 24, 2015
1 parent cf5c663 commit 9020ea3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Andre/SurvivalGame/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 9020ea3

Please sign in to comment.