[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:
sanctum32 2013-12-29 23:05:34 +02:00 committed by Antz
parent d18fc38034
commit ab98672241
6 changed files with 16 additions and 7 deletions

View file

@ -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();
}
}
}