fixed up down lt rt commands

This commit is contained in:
2018-09-24 22:39:34 +02:00
parent 0b066b5888
commit da9d76cb6e

View File

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