Skip to content

Commit 60f210e

Browse files
author
legoboy0215
committed
Update main.php
Added Color for the text. On console or on a 0.11.0 client..
1 parent 278475b commit 60f210e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

isopornot/src/legoboy/isopornot/main.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use pocketmine\command\CommandSender;
99
use pocketmine\command\Command;
1010
use pocketmine\command\CommandExecutor;
11+
use pocketmine\utils\TextFormat;
1112

1213
class Main extends PluginBase{
1314

@@ -25,7 +26,7 @@ public function onDisable(){
2526
public function onCommand(CommandSender $sender, Command $cmd, $label, array $args) {
2627
switch($cmd->getName()){
2728
case "isop":
28-
$sender->sendMessage("You ".($sender->isOp() ? "are" : "are not")." op!");
29+
$sender->sendMessage("[LegoCraft] " .TextFormat::GREEN . "You ".($sender->isOp() ? "are" : "are not")." op!");
2930
return true;
3031
}
3132
}

0 commit comments

Comments
 (0)