1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-24 13:47:46 +00:00

Mount debug command;

This commit is contained in:
amibu 2017-10-18 18:06:25 +02:00
parent e586a119e0
commit e62b712dce

View file

@ -258,6 +258,14 @@ void Core::DebugCommandHandler::set( char * data, Core::Entity::PlayerPtr pPlaye
pPlayer->sendModel();
pPlayer->sendDebug( "Model updated" );
}
else if ( subCommand == "mount" )
{
int32_t id;
sscanf( params.c_str(), "%d", &id );
pPlayer->dismount();
pPlayer->mount( id );
}
else
{
pPlayer->sendUrgent( subCommand + " is not a valid SET command." );