Skip to content

Commit

Permalink
Display error message of POI does not exist in /telepoi admin command
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimShi committed Apr 9, 2024
1 parent 250f0fc commit 7023a36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/ACE.Server/Command/Handlers/AdminCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7023a36

Please sign in to comment.