mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 23:27:45 +00:00
commit
b5a92485e7
1 changed files with 10 additions and 0 deletions
|
@ -506,6 +506,16 @@ void Core::Network::GameConnection::gm2Handler( const Packets::GamePacket& inPac
|
|||
player.sendNotice( "Jumping to " + targetPlayer->getName() );
|
||||
break;
|
||||
}
|
||||
case GmCommand::Call:
|
||||
{
|
||||
if ( targetPlayer->getZoneId() != player.getZoneId() )
|
||||
targetPlayer->setZone( player.getZoneId() );
|
||||
|
||||
targetPlayer->changePosition( player.getPos().x, player.getPos().y, player.getPos().z,
|
||||
player.getRotation() );
|
||||
player.sendNotice( "Calling " + targetPlayer->getName() );
|
||||
break;
|
||||
}
|
||||
default:
|
||||
player.sendUrgent( "GM2 Command not implemented: " + std::to_string( commandId ) );
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue