Skip to content

Commit

Permalink
Add player as a fetchable field in create event
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorinwasher committed Jun 3, 2024
1 parent 7edc790 commit 7b8ff99
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class StargateCreatePortalEvent extends StargatePortalEvent{
private boolean deny;
private String denyReason;
private double cost;
private final OfflinePlayer player;

/**
* Instantiates a new stargate creation event
Expand All @@ -41,6 +42,7 @@ public StargateCreatePortalEvent(@NotNull OfflinePlayer player, @NotNull Portal
this.cost = cost;
this.deny = deny;
this.denyReason = denyReason;
this.player = player;
}

/**
Expand Down Expand Up @@ -144,4 +146,8 @@ public String getDenyReason() {
public void setDenyReason(String denyReason) {
this.denyReason = denyReason;
}

public OfflinePlayer getPlayer(){
return this.player;
}
}

0 comments on commit 7b8ff99

Please sign in to comment.