mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-24 21:57:44 +00:00
Mount debug command;
This commit is contained in:
parent
e586a119e0
commit
e62b712dce
1 changed files with 8 additions and 0 deletions
|
@ -258,6 +258,14 @@ 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 == "mount" )
|
||||||
|
{
|
||||||
|
int32_t id;
|
||||||
|
sscanf( params.c_str(), "%d", &id );
|
||||||
|
|
||||||
|
pPlayer->dismount();
|
||||||
|
pPlayer->mount( id );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pPlayer->sendUrgent( subCommand + " is not a valid SET command." );
|
pPlayer->sendUrgent( subCommand + " is not a valid SET command." );
|
||||||
|
|
Loading…
Add table
Reference in a new issue