Skip to content

Instantly share code, notes, and snippets.

@lolzballs
Created September 15, 2013 18:03
Show Gist options
  • Save lolzballs/6573032 to your computer and use it in GitHub Desktop.
Save lolzballs/6573032 to your computer and use it in GitHub Desktop.
Test plugin for minecart
package tk.teamfield3.test;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.vehicle.VehicleMoveEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class Test extends JavaPlugin implements Listener {
@Override
public void onEnable() {
this.getServer().getPluginManager().registerEvents(this, this);
}
@Override
public void onDisable() {
}
@EventHandler
public void onMinecartMove(VehicleMoveEvent event) {
event.setCancelled(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment