mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Fixed requirement check issue with PoH portals checking for Plague City completion
This commit is contained in:
parent
7b1ebd4608
commit
48bc0ffb28
1 changed files with 1 additions and 7 deletions
|
|
@ -90,7 +90,7 @@ public class PortalChamberPlugin extends OptionHandler {
|
|||
for (Locations l : Locations.values()) {
|
||||
if (l.name().contains(identifier)) {
|
||||
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");
|
||||
return;
|
||||
}
|
||||
|
|
@ -138,12 +138,6 @@ public class PortalChamberPlugin extends OptionHandler {
|
|||
case "enter":
|
||||
String objectName = object.getName();
|
||||
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())) {
|
||||
player.teleport(l.location);
|
||||
if (player.getHouseManager().isInHouse(player) && node.getId() == 13635) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue