mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 10:14:42 +02:00
@ -43,7 +43,7 @@ public interface CancellablePlotEvent {
|
||||
/**
|
||||
* @deprecated No usage and not null-safe
|
||||
*/
|
||||
@Deprecated(since = "TODO")
|
||||
@Deprecated(since = "7.3.2")
|
||||
default int getEventResultRaw() {
|
||||
return getEventResult() != null ? getEventResult().getValue() : -1;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
* <p>
|
||||
* Setting the {@link #setPrice(double) price} to {@code 0} makes the plot practically free.
|
||||
*
|
||||
* @since TODO
|
||||
* @since 7.3.2
|
||||
*/
|
||||
public class PlayerBuyPlotEvent extends PlotPlayerEvent implements CancellablePlotEvent {
|
||||
|
||||
@ -49,7 +49,7 @@ public class PlayerBuyPlotEvent extends PlotPlayerEvent implements CancellablePl
|
||||
* Sets the price required to buy the plot.
|
||||
*
|
||||
* @param price the new price.
|
||||
* @since TODO
|
||||
* @since 7.3.2
|
||||
*/
|
||||
public void setPrice(@NonNegative final double price) {
|
||||
//noinspection ConstantValue - the annotation does not ensure a non-negative runtime value
|
||||
@ -63,7 +63,7 @@ public class PlayerBuyPlotEvent extends PlotPlayerEvent implements CancellablePl
|
||||
* Returns the currently set price required to buy the plot.
|
||||
*
|
||||
* @return the price.
|
||||
* @since TODO
|
||||
* @since 7.3.2
|
||||
*/
|
||||
public @NonNegative double price() {
|
||||
return price;
|
||||
|
@ -27,7 +27,7 @@ import org.checkerframework.checker.index.qual.NonNegative;
|
||||
/**
|
||||
* Called after a player has successfully bought a plot.
|
||||
*
|
||||
* @since TODO
|
||||
* @since 7.3.2
|
||||
*/
|
||||
public class PostPlayerBuyPlotEvent extends PlotPlayerEvent {
|
||||
|
||||
|
@ -25,7 +25,7 @@ import com.plotsquared.core.plot.Plot;
|
||||
/**
|
||||
* Called after a {@link Plot} was cleared.
|
||||
*
|
||||
* @since TODO
|
||||
* @since 7.3.2
|
||||
*/
|
||||
public class PostPlotClearEvent extends PlotPlayerEvent {
|
||||
|
||||
|
Reference in New Issue
Block a user