I've seen lots of people ask how to block portal. And that when they close the portal you are still able to enter the portal. That's because it is not fully coded. I have in example this in my ChangeMapHandler:
Oh and to close event portals :)Code:if (!portal.getPortalStatus()) { c.getPlayer().message("Portal is only available when the event starts."); c.getSession().write(MaplePacketCreator.enableActions()); return; }
Have fun with this :3Code:getPortal("join00").setPortalStatus(false);


Reply With Quote


