Created
September 15, 2013 18:03
-
-
Save lolzballs/6573032 to your computer and use it in GitHub Desktop.
Test plugin for minecart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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