Assorted whitespace fixes

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2017-08-06 09:08:05 +10:00
parent da073e8e66
commit e3d4acc303
50 changed files with 96 additions and 107 deletions

View File

@@ -122,7 +122,7 @@ public class AsyncPlayerChatEvent extends PlayerEvent implements Cancellable {
}
public boolean isCancelled() {
return cancel ;
return cancel;
}
public void setCancelled(boolean cancel) {

View File

@@ -77,4 +77,4 @@ public abstract class PlayerBucketEvent extends PlayerEvent implements Cancellab
public void setCancelled(boolean cancel) {
this.cancelled = cancel;
}
}
}

View File

@@ -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");

View File

@@ -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;
}
/**

View File

@@ -84,4 +84,4 @@ public class PlayerPortalEvent extends PlayerTeleportEvent {
public static HandlerList getHandlerList() {
return handlers;
}
}
}

View File

@@ -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;

View File

@@ -42,4 +42,4 @@ public class PlayerToggleSprintEvent extends PlayerEvent implements Cancellable
public static HandlerList getHandlerList() {
return handlers;
}
}
}