Add /gotohelp

This commit is contained in:
xSprite
2018-10-15 22:03:15 +02:00
parent 9872e38c75
commit 897ee54bc1

View File

@@ -201,6 +201,24 @@ namespace reallife_gamemode.Server.Commands
player.MovePosition(new Vector3(p.X, p.Y, p.Z), 0);
}
}
[Command("gotohelp", "~m~Benutzung: ~s~/gotohelp")]
public void CmdAdminGotolist(Client player)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
using (var dbContext = new DatabaseContext())
{
player.SendChatMessage("~m~__________ ~s~Goto ~m~__________");
foreach (Entities.GotoPoint f in dbContext.GotoPoints)
{
player.SendChatMessage("/goto "+f.Description+"");
}
}
}
[Command("gotox", "~m~Benutzung: ~s~/gotox [X] [Y] [Z]")]
public void CmdAdminGotoxyz(Client player, float x, float y, float z)