Skip to content

Commit

Permalink
7.10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Angeschossen committed Nov 28, 2024
1 parent 16db7e9 commit cd12fe1
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,27 @@
public interface CaptureFlag extends ExpressionEntity {
/**
* Get the position of this capture flag.
*
* @return Coordinates of the capture flag
*/
@NotNull BlockPosition getPosition();

WarTeam getTeam();

/**
* Get amount of seconds that the flag must be hold.
*
* @return never smaller than 0
*/
long getSecondsToHold();

/**
* Set the amount of seconds that the flag must be hold.
*
* @param secondsToHold can't be smaller than 0
*/
void setSecondsToHold(long secondsToHold);

CompletableFuture<Boolean> breakCaptureFlag(@Nullable LandPlayer player, boolean reward, boolean captured,
boolean exlosion, CaptureFlagBreakEvent.BreakReason reason);

Expand All @@ -30,6 +45,7 @@ CompletableFuture<Boolean> breakCaptureFlag(@Nullable LandPlayer player, boolean

/**
* Get the war to which this capture flag belongs.
*
* @return The war to which this capture flag belongs
*/
@NotNull War getWar();
Expand Down

0 comments on commit cd12fe1

Please # to comment.