From 6ca63be694fcb6b6c065b5c7da931ecc2294947d Mon Sep 17 00:00:00 2001 From: OptimShi Date: Mon, 8 Apr 2024 21:00:10 -0700 Subject: [PATCH] Display error message of POI does not exist in /telepoi admin command (#4148) --- Source/ACE.Server/Command/Handlers/AdminCommands.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/ACE.Server/Command/Handlers/AdminCommands.cs b/Source/ACE.Server/Command/Handlers/AdminCommands.cs index 00d741e107..6a5b579f00 100644 --- a/Source/ACE.Server/Command/Handlers/AdminCommands.cs +++ b/Source/ACE.Server/Command/Handlers/AdminCommands.cs @@ -893,7 +893,10 @@ public static void HandleTeleportPoi(Session session, params string[] parameters { var teleportPOI = DatabaseManager.World.GetCachedPointOfInterest(poi); if (teleportPOI == null) + { + session.Network.EnqueueSend(new GameMessageSystemChat($"Location: \"{poi}\" not found. Use \"list\" to display all valid locations.", ChatMessageType.Broadcast)); return; + } var weenie = DatabaseManager.World.GetCachedWeenie(teleportPOI.WeenieClassId); var portalDest = new Position(weenie.GetPosition(PositionType.Destination)); WorldObject.AdjustDungeon(portalDest);