From 0e1bdb11548e436cbc309378213a39063fc372be Mon Sep 17 00:00:00 2001 From: Tristan 'Natrist' Cormier Date: Thu, 16 Nov 2023 04:06:17 -0500 Subject: [PATCH] chore(Misc/Lang): rename LANG_YOU_NOT_HAVE_PERMISSION to LANG_PERMISSION_DENIED (#17732) --- src/server/game/Handlers/MiscHandler.cpp | 4 ++-- src/server/game/Miscellaneous/Language.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/game/Handlers/MiscHandler.cpp b/src/server/game/Handlers/MiscHandler.cpp index 507244dcc..0c7e8fa5d 100644 --- a/src/server/game/Handlers/MiscHandler.cpp +++ b/src/server/game/Handlers/MiscHandler.cpp @@ -1117,7 +1117,7 @@ void WorldSession::HandleWorldTeleportOpcode(WorldPacket& recv_data) if (AccountMgr::IsAdminAccount(GetSecurity())) GetPlayer()->TeleportTo(mapid, PositionX, PositionY, PositionZ, Orientation); else - SendNotification(LANG_YOU_NOT_HAVE_PERMISSION); + SendNotification(LANG_PERMISSION_DENIED); } void WorldSession::HandleWhoisOpcode(WorldPacket& recv_data) @@ -1128,7 +1128,7 @@ void WorldSession::HandleWhoisOpcode(WorldPacket& recv_data) if (!AccountMgr::IsAdminAccount(GetSecurity())) { - SendNotification(LANG_YOU_NOT_HAVE_PERMISSION); + SendNotification(LANG_PERMISSION_DENIED); return; } diff --git a/src/server/game/Miscellaneous/Language.h b/src/server/game/Miscellaneous/Language.h index 4cbadd49d..d26f3fd4e 100644 --- a/src/server/game/Miscellaneous/Language.h +++ b/src/server/game/Miscellaneous/Language.h @@ -721,7 +721,7 @@ enum AcoreStrings LANG_NOT_ENOUGH_GOLD = 801, LANG_NOT_FREE_TRADE_SLOTS = 802, LANG_NOT_PARTNER_FREE_TRADE_SLOTS = 803, - LANG_YOU_NOT_HAVE_PERMISSION = 804, + LANG_PERMISSION_DENIED = 804, // You do not have permission to perform this function. LANG_UNKNOWN_LANGUAGE = 805, LANG_NOT_LEARNED_LANGUAGE = 806, LANG_NEED_CHARACTER_NAME = 807,