Skip to content

Commit

Permalink
use exiled
Browse files Browse the repository at this point in the history
  • Loading branch information
Misfiy committed Aug 10, 2024
1 parent 4d28d2e commit 9e3ef7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXILED/Exiled.Events/Commands/TpsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ public class TpsCommand : ICommand
/// <inheritdoc />
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
double diff = Server.Tps / ServerStatic.ServerTickrate;
double diff = Server.Tps / Server.MaxTps;
string color = diff switch
{
> 0.9 => "green",
> 0.5 => "yellow",
_ => "red"
};

response = $"<color={color}>{Server.Tps}/{ServerStatic.ServerTickrate}</color>";
response = $"<color={color}>{Server.Tps}/{Server.MaxTps}</color>";
return true;
}
}
Expand Down

0 comments on commit 9e3ef7c

Please sign in to comment.