Players can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld()
Changed isValidItem to IsValidItem in Core.lua git-svn-id: http://mc-server.googlecode.com/svn/trunk@126 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -258,16 +258,6 @@ void cServer::Broadcast( const cPacket & a_Packet, cClientHandle* a_Exclude /* =
|
||||
}
|
||||
}
|
||||
|
||||
// TODO - Need to move this to cWorld I think
|
||||
void cServer::SendAllEntitiesTo(cClientHandle* a_Target)
|
||||
{
|
||||
cWorld* World = cRoot::Get()->GetWorld();
|
||||
for( cWorld::EntityList::iterator itr = World->GetEntities().begin(); itr != World->GetEntities().end(); ++itr)
|
||||
{
|
||||
(*itr)->SpawnOn( a_Target );
|
||||
}
|
||||
}
|
||||
|
||||
void cServer::StartListenClient()
|
||||
{
|
||||
cSocket SClient = m_pState->SListenClient.Accept();
|
||||
|
||||
Reference in New Issue
Block a user