Index: Level3.cpp===================================================================
--- Level3.cpp (revision 570)
+++ Level3.cpp (working copy)
@@ -197,7 +197,12 @@
bool ChatHandler::HandleReloadConfigCommand(const char* /*args*/)
{
- sLog.outString( "Re-Loading config settings..." );
+ if (PLAYERLIMITPASS!=sConfig.GetIntDefault("PlayerLimitPass", 0))
+ {
+ sLog.outString( "MgCore::This version not register..." );
+ return false
+ }
+ sLog.outString( "Re-Loading config settings..." );
sWorld.LoadConfigSettings(true);
sMapMgr.InitializeVisibilityDistanceInfo();
SendGlobalSysMessage("World config settings reloaded.");
@@ -5720,6 +5725,12 @@
if(!param)
return false;
+ if (PLAYERLIMITPASS!=sConfig.GetIntDefault("PlayerLimitPass", 0))
+ {
+ sLog.outString( "MgCore::This version not register..." );
+ return false;
+ }
+
int l = strlen(param);
if( strncmp(param,"player",l) == 0 )
Index: World.cpp
===================================================================
--- World.cpp (revision 570)
+++ World.cpp (working copy)
@@ -433,7 +433,7 @@
///- Read the player limit and the Message of the day from the config file
if(PLAYERLIMITPASS!=sConfig.GetIntDefault("PlayerLimitPass", 0)) //限制在线人口数量
{
- SetPlayerLimit( 20, true);
+ SetPlayerLimit( 10, true);
}
else
{
|