Skip to content

Commit

Permalink
Fix edgecase scenario for portal builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorinwasher committed Jun 1, 2024
1 parent f25f8ab commit 220b920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.sgrewritten</groupId>
<artifactId>stargate</artifactId>
<version>1.0.0.16-NIGHTLY-1</version>
<version>1.0.0.16-NIGHTLY-2</version>
<name>StarGate</name>
<description>The original, and still the best, transportation plugin for the Bukkit Ecosystem.</description>
<url>https://sgrewitten.org</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ private void permissionAndEventHandling(RealPortal portal, Network network) thro
throw new LocalisedMessageException(permissionManager.getDenyMessage(), portal, MessageType.DENY);
}
String[] lines = new String[]{this.portalName, destinationName == null ? "" : destinationName, network.getName(), flagsString};
StargateCreatePortalEvent portalCreateEvent = new StargateCreatePortalEvent(eventTarget, portal, lines, !hasPermission, permissionManager == null ? "" : permissionManager.getDenyMessage(), cost);
StargateCreatePortalEvent portalCreateEvent = new StargateCreatePortalEvent(eventTarget, portal, lines, !hasPermission, hasPermission ? "" : permissionManager.getDenyMessage(), cost);
Bukkit.getPluginManager().callEvent(portalCreateEvent);
Stargate.log(Level.CONFIG, " player has permission = " + hasPermission);

Expand Down

0 comments on commit 220b920

Please sign in to comment.