Fix missing database migration
This commit is contained in:
@@ -11,7 +11,7 @@ using ReallifeGamemode.Server.Services;
|
||||
|
||||
namespace ReallifeGamemode.Server.Wanted
|
||||
{
|
||||
public class Jail
|
||||
public class Jail : Script
|
||||
{
|
||||
private static Dictionary<int, int> Jailtime { get; set; } = new Dictionary<int, int>(); //time in seconds
|
||||
|
||||
@@ -172,8 +172,15 @@ namespace ReallifeGamemode.Server.Wanted
|
||||
}
|
||||
}
|
||||
|
||||
public static void Release_Jail(Client player, string reason)
|
||||
|
||||
|
||||
[RemoteEvent("setPrisonerFree")]
|
||||
public void Release_Jail(Client cop, string client)
|
||||
{
|
||||
Client player = ClientService.GetClientByNameOrId(client);
|
||||
if (player == null)
|
||||
return;
|
||||
|
||||
User user = player.GetUser();
|
||||
if (Jailtime.ContainsKey(user.Id))
|
||||
{
|
||||
@@ -191,7 +198,7 @@ namespace ReallifeGamemode.Server.Wanted
|
||||
User copUser = copPlayer.GetUser();
|
||||
if ((copUser.FactionId == 1 || copUser.FactionId == 3))
|
||||
{
|
||||
ChatService.SendMessage(copPlayer, "~r~HQ: Beamter " + copPlayer.Name + " hat " + user.Name + " aus dem Knast entlassen. Grund: " + reason + ".");
|
||||
ChatService.SendMessage(copPlayer, "~r~HQ: Beamter " + cop.Name + " hat " + user.Name + " aus dem Knast entlassen.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user