Clean up
This commit is contained in:
parent
d4d1d7ff18
commit
fed561c8f0
@ -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);
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ public class PlayerChairUnsitEvent extends PlayerEvent implements Cancellable {
|
||||
public boolean canBeCancelled() {
|
||||
return canbecancelled;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
|
@ -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() {
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user