Hi, So i'm trying to know how to make TextFormat:: color to change with a certain permission? For example, If you have the permission fly.command and in UI its green but if you don't have the permission on it and the UI form says Its red
You should learn the basic "if else statement" in programming PHP: if($sender->hasPermission("permission fly.command")){ $sender->sendMessage(TextFormat::GREEN . "blabla"); } else { $sender->sendMessage(TextFormat::RED . "blabla"); }