1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-24 21:57:44 +00:00

Final touches;

This commit is contained in:
Maru 2017-10-09 02:15:57 -03:00
parent f97aa2d7d6
commit c7784edfac

View file

@ -257,13 +257,6 @@ void Core::DebugCommandHandler::set( char * data, Core::Entity::PlayerPtr pPlaye
pPlayer->sendModel(); pPlayer->sendModel();
pPlayer->sendDebug( "Model updated" ); pPlayer->sendDebug( "Model updated" );
} }
else if ( subCommand == "title" )
{
uint32_t titleId;
sscanf( params.c_str(), "%d", &titleId );
pPlayer->setTitle( titleId );
}
else else
{ {
pPlayer->sendUrgent( subCommand + " is not a valid SET command." ); pPlayer->sendUrgent( subCommand + " is not a valid SET command." );
@ -317,6 +310,7 @@ void Core::DebugCommandHandler::add( char * data, Core::Entity::PlayerPtr pPlaye
sscanf( params.c_str(), "%d", &titleId ); sscanf( params.c_str(), "%d", &titleId );
pPlayer->addTitle( titleId ); pPlayer->addTitle( titleId );
pPlayer->sendNotice( "Added title (ID: " + std::to_string( titleId ) + ")" );
} }
else if( subCommand == "spawn" ) else if( subCommand == "spawn" )
{ {