Fix chat and beautify server promo box (#1008)

* Fix chat and beautify server promo box
* Remove all unnecessary hooks

---------

Co-authored-by: sudlud <sudlud@users.noreply.github.com>
This commit is contained in:
SaW
2025-02-23 13:29:19 +01:00
committed by GitHub
parent 326637c93b
commit 114eeb3b37

View File

@@ -78,12 +78,12 @@ public:
PlayerbotsPlayerScript() : PlayerScript("PlayerbotsPlayerScript", {
PLAYERHOOK_ON_LOGIN,
PLAYERHOOK_ON_AFTER_UPDATE,
PLAYERHOOK_CAN_PLAYER_USE_PRIVATE_CHAT,
PLAYERHOOK_CAN_PLAYER_USE_GROUP_CHAT,
PLAYERHOOK_CAN_PLAYER_USE_CHAT,
PLAYERHOOK_CAN_PLAYER_USE_CHANNEL_CHAT,
PLAYERHOOK_ON_CHAT,
PLAYERHOOK_ON_CHAT_WITH_CHANNEL,
PLAYERHOOK_ON_CHAT_WITH_GROUP,
PLAYERHOOK_ON_BEFORE_CRITERIA_PROGRESS,
PLAYERHOOK_ON_BEFORE_ACHI_COMPLETE
PLAYERHOOK_ON_BEFORE_ACHI_COMPLETE,
PLAYERHOOK_CAN_PLAYER_USE_PRIVATE_CHAT
}) {}
void OnPlayerLogin(Player* player) override
@@ -259,16 +259,16 @@ public:
// especially if you are distributing a repack or hosting a public server
// e.g. you can replace the URL with your own repository,
// but it should be publicly accessible and include all modifications you've made
LOG_INFO("server.loading", "============================================================");
LOG_INFO("server.loading", "|| ||");
LOG_INFO("server.loading", "|| AzerothCore Playerbots Module ||");
LOG_INFO("server.loading", "|| ||");
LOG_INFO("server.loading", "============================================================");
LOG_INFO("server.loading", "|| mod-playerbots is a community-driven open-source ||");
LOG_INFO("server.loading", "|| project based on AzerothCore, licensed under AGPLv3.0 ||");
LOG_INFO("server.loading", "============================================================");
LOG_INFO("server.loading", "|| https://github.com/liyunfan1223/mod-playerbots ||");
LOG_INFO("server.loading", "============================================================");
LOG_INFO("server.loading", "╔══════════════════════════════════════════════════════════╗");
LOG_INFO("server.loading", " ");
LOG_INFO("server.loading", " AzerothCore Playerbots Module ");
LOG_INFO("server.loading", " ");
LOG_INFO("server.loading", "╟──────────────────────────────────────────────────────────╢");
LOG_INFO("server.loading", " mod-playerbots is a community-driven open-source ");
LOG_INFO("server.loading", " project based on AzerothCore, licensed under AGPLv3.0 ");
LOG_INFO("server.loading", "╟──────────────────────────────────────────────────────────╢");
LOG_INFO("server.loading", " https://github.com/liyunfan1223/mod-playerbots ");
LOG_INFO("server.loading", "╚══════════════════════════════════════════════════════════╝");
uint32 oldMSTime = getMSTime();