Add /mark & /gotomark
This commit is contained in:
@@ -1306,6 +1306,27 @@ namespace reallife_gamemode.Server.Commands
|
||||
}
|
||||
player.SendChatMessage(gotoString);
|
||||
}
|
||||
[Command("mark")]
|
||||
public void CmdAdminMark(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
player.SetData("mark", player.Position);
|
||||
player.SendNotification("~y~Mark ~s~gespeichert", true);
|
||||
}
|
||||
[Command("gotomark")]
|
||||
public void CmdAdminGotoMark(Client player)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
player.Position = player.GetData("mark");
|
||||
}
|
||||
[Command("saveall")]
|
||||
public void SaveAll(Client player)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user