From fed561c8f0bc269065589ced2fae79b89b4d3f3f Mon Sep 17 00:00:00 2001 From: Shevchik Date: Fri, 7 Mar 2014 22:37:27 +0400 Subject: [PATCH] Clean up --- src/com/cnaude/chairs/api/PlayerChairSitEvent.java | 2 +- src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java | 2 +- src/com/cnaude/chairs/core/PlayerSitData.java | 6 +++--- src/com/cnaude/chairs/listeners/TryUnsitEventListener.java | 2 +- .../cnaude/chairs/vehiclearrow/nms172/NMSChairsArrow.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/com/cnaude/chairs/api/PlayerChairSitEvent.java b/src/com/cnaude/chairs/api/PlayerChairSitEvent.java index 0e35c60..f7ec3ae 100644 --- a/src/com/cnaude/chairs/api/PlayerChairSitEvent.java +++ b/src/com/cnaude/chairs/api/PlayerChairSitEvent.java @@ -9,7 +9,7 @@ public class PlayerChairSitEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancelled = false; - + public PlayerChairSitEvent(Player who) { super(who); } diff --git a/src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java b/src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java index 935f785..1ee819b 100644 --- a/src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java +++ b/src/com/cnaude/chairs/api/PlayerChairUnsitEvent.java @@ -19,7 +19,7 @@ public class PlayerChairUnsitEvent extends PlayerEvent implements Cancellable { public boolean canBeCancelled() { return canbecancelled; } - + @Override public HandlerList getHandlers() { return handlers; diff --git a/src/com/cnaude/chairs/core/PlayerSitData.java b/src/com/cnaude/chairs/core/PlayerSitData.java index 3092ddc..a4141aa 100644 --- a/src/com/cnaude/chairs/core/PlayerSitData.java +++ b/src/com/cnaude/chairs/core/PlayerSitData.java @@ -52,7 +52,7 @@ public class PlayerSitData { public void startReSitTask(final Player player) { int task = Bukkit.getScheduler().scheduleSyncRepeatingTask( - plugin, + plugin, new Runnable() { @Override public void run() { @@ -73,7 +73,7 @@ public class PlayerSitData { arrow.setPassenger(player); sit.put(player.getName(), arrow); Bukkit.getScheduler().scheduleSyncDelayedTask( - plugin, + plugin, new Runnable() { @Override public void run() { @@ -109,7 +109,7 @@ public class PlayerSitData { final Location tploc = sitstopteleportloc.get(player.getName()); if (restoreposition) { Bukkit.getScheduler().scheduleSyncDelayedTask( - plugin, + plugin, new Runnable() { @Override public void run() { diff --git a/src/com/cnaude/chairs/listeners/TryUnsitEventListener.java b/src/com/cnaude/chairs/listeners/TryUnsitEventListener.java index 1db5a8d..c7276ab 100644 --- a/src/com/cnaude/chairs/listeners/TryUnsitEventListener.java +++ b/src/com/cnaude/chairs/listeners/TryUnsitEventListener.java @@ -22,7 +22,7 @@ public class TryUnsitEventListener implements Listener { public TryUnsitEventListener(Chairs plugin) { this.plugin = plugin; } - + //spigot... @EventHandler(priority=EventPriority.LOWEST) public void onPlayerTeleport(PlayerTeleportEvent event) { diff --git a/src/com/cnaude/chairs/vehiclearrow/nms172/NMSChairsArrow.java b/src/com/cnaude/chairs/vehiclearrow/nms172/NMSChairsArrow.java index c99f6b6..1f094b7 100644 --- a/src/com/cnaude/chairs/vehiclearrow/nms172/NMSChairsArrow.java +++ b/src/com/cnaude/chairs/vehiclearrow/nms172/NMSChairsArrow.java @@ -4,8 +4,8 @@ import net.minecraft.server.v1_7_R1.EntityArrow; import org.bukkit.Location; import org.bukkit.Server; -import org.bukkit.craftbukkit.v1_7_R1.CraftWorld; import org.bukkit.craftbukkit.v1_7_R1.CraftServer; +import org.bukkit.craftbukkit.v1_7_R1.CraftWorld; import org.bukkit.entity.Arrow; import com.cnaude.chairs.vehiclearrow.NMSChairsArrowInterface;