remss chat messages

This commit is contained in:
Fabian
2021-04-27 21:58:56 +02:00
parent 2338cc2c4b
commit 9840b4c52c
2 changed files with 4 additions and 2 deletions

View File

@@ -545,7 +545,7 @@ namespace ReallifeGamemode.Server.Commands
#region Admin
[Command("remspawnschutz", "~m~Benutzung: ~s~/rmss [Target]")]
[Command("remspawnschutz", "~m~Benutzung: ~s~/rmss [Target]", Alias = "rmss")]
public void CmdAdminRmss(Player player, String targetname)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
@@ -562,6 +562,8 @@ namespace ReallifeGamemode.Server.Commands
return;
}
target.SendChatMessage(player.Name + " hat deinen Spawnschutz entfernt");
player.SendChatMessage("Du hast den Spawnschutz von " + target.Name + " entfernt");
target.TriggerEvent("abortSpawnschutz");
}