Fixed requirement check issue with PoH portals checking for Plague City completion

This commit is contained in:
Player Name 2025-03-25 09:55:37 +00:00 committed by Ryan
parent 7b1ebd4608
commit 48bc0ffb28

View file

@ -90,7 +90,7 @@ public class PortalChamberPlugin extends OptionHandler {
for (Locations l : Locations.values()) { for (Locations l : Locations.values()) {
if (l.name().contains(identifier)) { if (l.name().contains(identifier)) {
if (l == Locations.ARDOUGNE){ if (l == Locations.ARDOUGNE){
if (player.getAttribute(ARDOUGNE_TELE_ATTRIBUTE, false)){ if (!player.getAttribute(ARDOUGNE_TELE_ATTRIBUTE, false)) {
player.sendMessage("You do not have the requirements to direct the portal there"); player.sendMessage("You do not have the requirements to direct the portal there");
return; return;
} }
@ -138,12 +138,6 @@ public class PortalChamberPlugin extends OptionHandler {
case "enter": case "enter":
String objectName = object.getName(); String objectName = object.getName();
for (Locations l : Locations.values()) { for (Locations l : Locations.values()) {
if (l == Locations.ARDOUGNE){
if (player.getAttribute(ARDOUGNE_TELE_ATTRIBUTE, false)){
player.sendMessage("You do not have the requirements to enter this portal.");
return false;
}
}
if (objectName.toLowerCase().contains(l.name().toLowerCase())) { if (objectName.toLowerCase().contains(l.name().toLowerCase())) {
player.teleport(l.location); player.teleport(l.location);
if (player.getHouseManager().isInHouse(player) && node.getId() == 13635) { if (player.getHouseManager().isInHouse(player) && node.getId() == 13635) {