mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +00:00
[12757] Chat commands disabled for normal players.
A new setting for the world server has been added. From now on
chat commands executed by normal player accounts will no longer
be executed, unless you explicitly enable the `PlayerCommands`
option.
By default player command execution is disabled.
commit is based on 208599f7fa
This commit is contained in:
parent
d18fc38034
commit
ab98672241
6 changed files with 16 additions and 7 deletions
|
|
@ -789,6 +789,8 @@ void World::LoadConfigSettings(bool reload)
|
|||
|
||||
setConfig(CONFIG_BOOL_KICK_PLAYER_ON_BAD_PACKET, "Network.KickOnBadPacket", false);
|
||||
|
||||
setConfig(CONFIG_BOOL_PLAYER_COMMANDS, "PlayerCommands", false);
|
||||
|
||||
if (int clientCacheId = sConfig.GetIntDefault("ClientCacheVersion", 0))
|
||||
{
|
||||
// overwrite DB/old value
|
||||
|
|
@ -2554,4 +2556,4 @@ void World::UpdatePhaseDefinitions()
|
|||
if (itr->second && itr->second->GetPlayer() && itr->second->GetPlayer()->IsInWorld())
|
||||
itr->second->GetPlayer()->GetPhaseMgr()->NotifyStoresReloaded();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue