1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 22:57:45 +00:00

Block //gm terri <territorytype> usage for instanced territories

This commit is contained in:
NotAdam 2018-11-05 23:04:26 +11:00
parent 0f6ac74f15
commit 973cfbf365
2 changed files with 7 additions and 1 deletions

View file

@ -456,6 +456,12 @@ void Core::Network::GameConnection::gm1Handler( const Packets::FFXIVARR_PACKET_R
player.sendUrgent( "No zone instance found for " + std::to_string( param1 ) );
break;
}
if( !pTeriMgr->isDefaultTerritory( param1 ) )
{
player.sendUrgent( pZone->getName() + " is an instanced area - instance ID required to zone in." );
break;
}
bool doTeleport = false;
uint16_t teleport;

View file

@ -29,7 +29,7 @@ class TerritoryMgr
public:
enum TerritoryIntendedUse :
uint8_t //ToDo: Add The Rest of The Territory Types and Have Better Names For Them
uint8_t //TODO: Add the rest of the territory types and have better names for them
{
Town = 0,
OpenWorld = 1,