fixed up down lt rt commands

This commit is contained in:
2018-09-24 22:39:34 +02:00
parent 1dd25c1642
commit 8e4c088e85

View File

@@ -713,6 +713,7 @@ namespace reallife_gamemode.Server.Commands
[Command("dn", "~m~Benutzung: ~s~/dn [Wert]")] [Command("dn", "~m~Benutzung: ~s~/dn [Wert]")]
public void CmdAdminDn(Client player, int value = 5) public void CmdAdminDn(Client player, int value = 5)
{ {
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true) if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
{ {
ChatService.NotAuthorized(player); ChatService.NotAuthorized(player);
@@ -760,6 +761,11 @@ namespace reallife_gamemode.Server.Commands
[Command("lt", "~m~Benutzung: ~s~/lt [Wert]")] [Command("lt", "~m~Benutzung: ~s~/lt [Wert]")]
public void CmdAdminLt(Client player, int value = 5) public void CmdAdminLt(Client player, int value = 5)
{ {
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
float playerHeading = player.Heading; float playerHeading = player.Heading;