fix jailtime
This commit is contained in:
@@ -89,13 +89,13 @@ namespace ReallifeGamemode.Server.Wanted
|
|||||||
|
|
||||||
int timeMinutes = 0;
|
int timeMinutes = 0;
|
||||||
|
|
||||||
if (((int)(client.GetUser().JailTime / 60)) <= 1 && client.GetUser().JailTime != 0)
|
if (((int)(client.GetUser().jailTime / 60)) <= 1 && client.GetUser().jailTime != 0)
|
||||||
{
|
{
|
||||||
timeMinutes = 1;
|
timeMinutes = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
timeMinutes = (int)(client.GetUser().JailTime / 60);
|
timeMinutes = (int)(client.GetUser().jailTime / 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
client.TriggerEvent("jailTime", JsonConvert.SerializeObject(timeMinutes));
|
client.TriggerEvent("jailTime", JsonConvert.SerializeObject(timeMinutes));
|
||||||
|
|||||||
Reference in New Issue
Block a user