public static KickLog KickLogs(Client client) { if (!client.HasData("ID")) { return(null); } int kpid = client.GetData("ID"); KickLog Kicklog = Database.GetById <KickLog>(kpid); return(Kicklog); }
public void CMD_Kick(Client client, Client player, string grund) { KickLog Kicklog = PlayerHelper.KickLogs(client); if (!AdminSystem.HasRank(client, 1)) { client.SendNotification("~r~Du hast dazu keine Berechtigung!"); return; } NAPI.Chat.SendChatMessageToAll($"[~r~SERVER~w~] Der Spieler {player.Name} wurde wegen: {grund}, ~y~gekickt!"); Kicklog = new KickLog(); Kicklog.kicked = player.Name; Kicklog.kickedby = client.Name; Kicklog.grund = grund; Database.Upsert(Kicklog); player.Kick(); }
public void CMD_Kick(Client client, Client player, string grund) { KickLog Kicklog = PlayerHelper.KickLogs(client); if (!AdminSystem.HasRank(client, 1)) { client.SendNotification("~r~Vous n'avez pas l'autorisation!"); return; } NAPI.Chat.SendChatMessageToAll($"[~r~SERVER~w~] Le joueur {player.Name} était à cause de: {grund}, ~y~coups de pied!"); Kicklog = new KickLog(); Kicklog.kicked = player.Name; Kicklog.kickedby = client.Name; Kicklog.grund = grund; Database.Upsert(Kicklog); player.Kick(); }