1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-03 09:17:47 +00:00

Mount debug command;

This commit is contained in:
amibu 2017-10-18 18:06:25 +02:00
parent 77717d29f3
commit 1f3d0112a5

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." );