Add /gotohelp
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user