#Colored chat messages
1 messages · Page 1 of 1 (latest)
VS.
You are able to see availible overloads by hovering over it, etc.
ye ik but im not sure how to use colors
UnityEngine.Color
There is literally a button that says GitHub Examples and Documentation.
Assuming you are using VS 2022.
It should popup on the right hand side.
Odd.
The font is different on that too.
When did you last update VS?
i changed my font
Ah.
[EditorBrowsable(EditorBrowsableState.Never)]
internal static bool CheckPermissions(SteamPlayer caller, string permission)
{
UnturnedPlayer player = caller.ToUnturnedPlayer();
Regex r = new Regex("^\\/\\S*");
string requestedCommand = r.Match(permission.ToLower()).Value.TrimStart('/').ToLower();
IRocketCommand command = R.Commands.GetCommand(requestedCommand);
double cooldown = R.Commands.GetCooldown(player, command);
if (command != null)
{
if (R.Permissions.HasPermission(player, command))
{
if (cooldown > 0)
{
UnturnedChat.Say(player, R.Translate("command_cooldown", cooldown), Color.red);
return false;
}
return true;
}
else
{
UnturnedChat.Say(player, R.Translate("command_no_permission"), Color.red);
return false;
}
}
else
{
UnturnedChat.Say(player, U.Translate("command_not_found"), Color.red);
return false;
}
}
ty
it might be diffrent if you are using github.dev
but yea i updated vs and nothing has changed
Nah, I don't use github.dev
Just an easier window to view other stuff in it.
true