Commands command = (Commands) comm;
if(!activeChar.getPlayerAccess().Menu)
{
return false;
}
L2Vehicle boat = null;
switch(command)
{
case admin_boat_reset:
if(wordList.length == 2)
{
boat = L2VehicleManager.getInstance().getBoat(Integer.parseInt(wordList[1]));
}
else
{
for(L2Character cha : L2World.getAroundCharacters(activeChar))
{
if(cha != null && cha.isVehicle())
{
boat = (L2Vehicle) cha;
break;
}
}
}
if(boat != null)
{
boat.despawn();
boat.spawn();
}
break;
case admin_boat_reload:
for(L2Vehicle b : L2VehicleManager.getInstance().getBoats().values())
{
if(b != null)
{
b.despawn();
b.deleteMe();
}
}
L2VehicleManager.getInstance().getBoats().clear();
L2VehicleManager.getInstance().loadShips();
break;
case admin_airship:
boat = new L2AirShip(activeChar.getClan(), "airship", 0);
boat.setHeading(activeChar.getHeading());
boat.setXYZ(activeChar.getX(), activeChar.getY(), activeChar.getZ() + 333);
L2VehicleManager.getInstance().addStaticItem(boat);
boat.spawn();
break;
case admin_airship_enter:
for(L2Character cha : L2World.getAroundCharacters(activeChar, 1000, 1000))
{
if(cha.isAirShip())