From 1710d3a506617ca4af1e6695cbb308326be38273 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 26 Mar 2020 22:37:51 +0100 Subject: [PATCH] Minor adjustments --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 8 ++++---- ReallifeGamemode.Server/Commands/FactionCommands.cs | 6 +++--- ReallifeGamemode.Server/Events/Connect.cs | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 03fc5f1c..141e9fd8 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using GTANetworkAPI; @@ -153,7 +153,7 @@ namespace ReallifeGamemode.Server.Commands ChatService.SendMessage(player, "~b~ " + "/a, /countdown, /freeze, /unfreeze, /mark, /gotmark, /gotox, /up, /setdimension, /spec, /warn, /ip, /kick, /ban /unban, /slap, /takeweapon, /tov, /ghv, /factionlist, /businesslist, /joblist"); break; case AdminLevel.ADMIN2: - ChatService.SendMessage(player, "~b~ " + "/sethp, /setarmor, /arevive, /aunjail, /aclear, /clothes, /props,/aclear"); + ChatService.SendMessage(player, "~b~ " + "/sethp, /setarmor, /arevive, /aunjail, /aclear, /clothes, /props"); break; case AdminLevel.ADMIN3: ChatService.SendMessage(player, "~b~ " + "/adice, /settime, /setweather, /rsetarmor, /rgiveweapon, /giveweapon, /veh, /fv, /vfix, /vdestroy, /vlivery, /vcolor, /vehsmoke, /aneon, /mod, /showtuningmenu, /rvdestroy, /vsethp"); @@ -1127,7 +1127,7 @@ namespace ReallifeGamemode.Server.Commands ChatService.SendMessage(player, "~b~Du hast die Rüstung von " + target.Name + " auf " + armor + " gesetzt."); } - [Command("aclear", "~m~Benutzung: ~s~/aclear [Name / ID] [Grund]", GreedyArg = true)] + [Command("aclear", "~m~Benutzung: ~s~/aclear [Spieler] [Grund]", GreedyArg = true)] public void CmdFactionClear(Player player, string nameOrId, string reason) { @@ -3253,7 +3253,7 @@ namespace ReallifeGamemode.Server.Commands } } - [Command("blind", "~m~Benutzung: ~s~/blind [Name / ID] [Mode]")] + [Command("blind", "~m~Benutzung: ~s~/blind [Spieler] [Mode]")] public void CmdBlind(Player player, string name, int mode) { if (!player.IsLoggedIn()) return; diff --git a/ReallifeGamemode.Server/Commands/FactionCommands.cs b/ReallifeGamemode.Server/Commands/FactionCommands.cs index 00658252..5f73067e 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -1,4 +1,4 @@ -using GTANetworkAPI; +using GTANetworkAPI; using ReallifeGamemode.Database.Entities; using ReallifeGamemode.Database.Models; using ReallifeGamemode.Server.Extensions; @@ -229,7 +229,7 @@ namespace ReallifeGamemode.Server.Commands } #endregion #region Staatsfraktionen (LSPD / FBI) Commands - [Command("wanted", "~m~Benutzung: ~s~/wa(nted) [Name / ID] [Anzahl] [Grund]", Alias = "wa", GreedyArg = true)] + [Command("wanted", "~m~Benutzung: ~s~/wa(nted) [Spieler] [Anzahl] [Grund]", Alias = "wa", GreedyArg = true)] public void CmdFactionWanted(Player player, string nameOrId, int amount, string reason) { User user = player.GetUser(); @@ -262,7 +262,7 @@ namespace ReallifeGamemode.Server.Commands targetUser.GiveWanteds(player, amount, reason); } - [Command("clear", "~m~Benutzung: ~s~/clear [Name / ID] [Grund]", GreedyArg = true)] + [Command("clear", "~m~Benutzung: ~s~/clear [Spieler] [Grund]", GreedyArg = true)] public void CmdFactionClear(Player player, string nameOrId, string reason) { diff --git a/ReallifeGamemode.Server/Events/Connect.cs b/ReallifeGamemode.Server/Events/Connect.cs index d84a25af..5ee084ad 100644 --- a/ReallifeGamemode.Server/Events/Connect.cs +++ b/ReallifeGamemode.Server/Events/Connect.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using GTANetworkAPI; using ReallifeGamemode.Database; @@ -44,7 +44,7 @@ namespace ReallifeGamemode.Server.Events if (IsPlayerBanned(player)) return; player.TriggerEvent("SERVER:Login_ShowBrowser"); - string msg = "~m~*** " + player.Name + " [" + player.SocialClubName + "] [ID:" + player.Handle.Value + "] (" + player.Address + ")"; + string msg = "~m~*** " + player.Name + " [" + player.SocialClubName + "] [ID: " + player.Handle.Value + "] (" + player.Address + ")"; ChatService.BroadcastAdmin(msg, AdminLevel.ADMIN); }