@@ -122,7 +122,7 @@ public class AsyncPlayerChatEvent extends PlayerEvent implements Cancellable {
|
||||
}
|
||||
|
||||
public boolean isCancelled() {
|
||||
return cancel ;
|
||||
return cancel;
|
||||
}
|
||||
|
||||
public void setCancelled(boolean cancel) {
|
||||
|
||||
@@ -77,4 +77,4 @@ public abstract class PlayerBucketEvent extends PlayerEvent implements Cancellab
|
||||
public void setCancelled(boolean cancel) {
|
||||
this.cancelled = cancel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ public class PlayerEditBookEvent extends PlayerEvent implements Cancellable {
|
||||
public PlayerEditBookEvent(Player who, int slot, BookMeta previousBookMeta, BookMeta newBookMeta, boolean isSigning) {
|
||||
super(who);
|
||||
|
||||
Validate.isTrue(slot >= 0 && slot <=8, "Slot must be in range 0-8 inclusive");
|
||||
Validate.isTrue(slot >= 0 && slot <= 8, "Slot must be in range 0-8 inclusive");
|
||||
Validate.notNull(previousBookMeta, "Previous book meta must not be null");
|
||||
Validate.notNull(newBookMeta, "New book meta must not be null");
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ public class PlayerLevelChangeEvent extends PlayerEvent {
|
||||
private final int newLevel;
|
||||
|
||||
public PlayerLevelChangeEvent(final Player player, final int oldLevel, final int newLevel) {
|
||||
super(player);
|
||||
this.oldLevel = oldLevel;
|
||||
this.newLevel = newLevel;
|
||||
super(player);
|
||||
this.oldLevel = oldLevel;
|
||||
this.newLevel = newLevel;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -84,4 +84,4 @@ public class PlayerPortalEvent extends PlayerTeleportEvent {
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class PlayerStatisticIncrementEvent extends PlayerEvent implements Cancel
|
||||
private final Material material;
|
||||
|
||||
public PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue) {
|
||||
super (player);
|
||||
super(player);
|
||||
this.statistic = statistic;
|
||||
this.initialValue = initialValue;
|
||||
this.newValue = newValue;
|
||||
@@ -33,7 +33,7 @@ public class PlayerStatisticIncrementEvent extends PlayerEvent implements Cancel
|
||||
}
|
||||
|
||||
public PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue, EntityType entityType) {
|
||||
super (player);
|
||||
super(player);
|
||||
this.statistic = statistic;
|
||||
this.initialValue = initialValue;
|
||||
this.newValue = newValue;
|
||||
@@ -42,7 +42,7 @@ public class PlayerStatisticIncrementEvent extends PlayerEvent implements Cancel
|
||||
}
|
||||
|
||||
public PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue, Material material) {
|
||||
super (player);
|
||||
super(player);
|
||||
this.statistic = statistic;
|
||||
this.initialValue = initialValue;
|
||||
this.newValue = newValue;
|
||||
|
||||
@@ -42,4 +42,4 @@ public class PlayerToggleSprintEvent extends PlayerEvent implements Cancellable
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user