You must create a voicedcommand
And check if player is in multizone
Teleport to xyz
If not send msg
Like
If(command.startsWith("exit"))
{
If(player.isInsideZone(ZoneId.multi
))
{
Player.teleTolocation(x,y,z,offset);
}
else
player.sendMessage("you can use this command only in multifunction zone!");
}