Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
v2.3 (#6)
Browse files Browse the repository at this point in the history
* v2.3

* v2.3

Added colors!!!
  • Loading branch information
Infernus101 authored Oct 13, 2017
1 parent a5412bc commit 0690f5e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ProfileUI
author: Infernus101
api: [2.0.0, 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA5, 3.0.0-ALPHA6, 3.0.0-ALPHA7, 3.0.0-ALPHA8, 3.0.0-ALPHA9]
main: Infernus101\Main
version: 2.2
version: 2.3
depend: [FactionsPro, EconomyAPI, PurePerms]
commands:
profile:
Expand Down
16 changes: 8 additions & 8 deletions src/Infernus101/window/ProfileWindow.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,31 +70,31 @@ public function process(): void {
"content" => []
];

$this->data["content"][] = ["type" => "label", "text" => "Name: $name2"];
$this->data["content"][] = ["type" => "label", "text" => TextFormat::GOLD."Name: ".TextFormat::WHITE."$name2"];

if($this->pl->config->get("rank") == 1){
$this->data["content"][] = ["type" => "label", "text" => "Rank: $rank"];
$this->data["content"][] = ["type" => "label", "text" => TextFormat::GOLD."Rank: ".TextFormat::WHITE."$rank"];
}

if($this->pl->config->get("money") == 1){
$this->data["content"][] = ["type" => "label", "text" => "Money: $money"];
$this->data["content"][] = ["type" => "label", "text" => TextFormat::GOLD."Money: ".TextFormat::WHITE."$money"];
}

if($this->pl->config->get("faction") == 1){
$this->data["content"][] = ["type" => "label", "text" => "Faction: $fac"];
$this->data["content"][] = ["type" => "label", "text" => TextFormat::GOLD."Faction: ".TextFormat::WHITE."$fac"];
}

if($this->pl->config->get("first-played") == 1){
$this->data["content"][] = ["type" => "label", "text" => "First Played: $date2 at $time2"];
$this->data["content"][] = ["type" => "label", "text" => TextFormat::GOLD."First Played: ".TextFormat::WHITE."$date2 at $time2"];
}

if($this->pl->config->get("last-seen") == 1){
if($flag == true){
$this->data["content"][] = ["type" => "label", "text" => "Status: $status"];
$this->data["content"][] = ["type" => "label", "text" => TextFormat::GOLD."Status: ".TextFormat::WHITE."$status"];
}
if($flag == false){
$this->data["content"][] = ["type" => "label", "text" => "Status: $status"];
$this->data["content"][] = ["type" => "label", "text" => "Last seen: $date at $time"];
$this->data["content"][] = ["type" => "label", "text" => TextFormat::GOLD."Status: ".TextFormat::WHITE."$status"];
$this->data["content"][] = ["type" => "label", "text" => TextFormat::GOLD."Last seen: ".TextFormat::WHITE."$date at $time"];
}
}

Expand Down

1 comment on commit 0690f5e

@SOF3
Copy link
Contributor

@SOF3 SOF3 commented on 0690f5e Oct 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @Infernus101,
Please note thta your plugin description on Poggit https://poggit.pmmp.io/p/ProfileUI/2.3#description has been edited because advertising servers in plugin descriptions is disallowed.

Please sign in to comment.