Easy!
First, open up Actionhandler.java. Now let's assume your portal is object id... 2474.
Now, add this:
Now, why 2474? Because that is the object id.Code:case 2474: if (c.playerRights >= 1) { c.getPA().startTeleport(Xcoords, yCoords, Heightlevel, "modern"); } else { c.sendMessage("You aren't allowed to use this portal."); } break;
if (c.playerRights >= 1) means that if a user with player rights 1 or higher clicks on this object, it will do something.
Easy. Remember to edit, "Xcoords", "yCoords" and "HeightLevel" with real numbers.
Now, you're probably wondering where the heck am i adding this? Search for, case 1765, and add the code under there.