This commit is contained in:
Shevchik 2014-03-07 22:37:27 +04:00
parent d4d1d7ff18
commit fed561c8f0
5 changed files with 7 additions and 7 deletions

View File

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

View File

@ -19,7 +19,7 @@ public class PlayerChairUnsitEvent extends PlayerEvent implements Cancellable {
public boolean canBeCancelled() {
return canbecancelled;
}
@Override
public HandlerList getHandlers() {
return handlers;

View File

@ -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() {

View File

@ -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) {

View File

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