Is VehicleListener Broken?

Discussion in 'Plugin Development' started by Derek Peterson, Jan 8, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Derek Peterson

    Hi there,

    I'm having trouble setting up a VehicleListener. I've set it up exactly like I did with my Player and Block Listeners, but I'm getting the following error:

    in org.bukkit.plugin.PluginManager cannot be applied to
    It's like the registerEvent method isn't set up to deal with VehicleListeners yet, but I wanted to make sure I'm not doing something wrong.

    My VehicleListener looks like this:

    package com.derekpeterson.bukkit.PeacecraftPlugin;
    import org.bukkit.*;
    import java.sql.*;
    import org.bukkit.Block;
    import org.bukkit.Location;
    import org.bukkit.Player;
    import org.bukkit.World;
    import org.bukkit.BlockFace;
    import org.bukkit.Material;
    import org.bukkit.event.vehicle;
    import org.bukkit.event.vehicle.VehicleListener;
    public class PeacecraftPluginVehicleListener extends VehicleListener {
        private final PeacecraftPlugin plugin;
        public PeacecraftPluginVehicleListener(final PeacecraftPlugin plugin) {
            this.plugin = plugin;
    Does anyone have any ideas?

    Thanks in advance!
  2. Offline

    Dinnerbone Bukkit Team Member

    Fixed! Sorry
  3. Offline

    Derek Peterson

    Awesome! Thanks, it works like a charm now :)
Thread Status:
Not open for further replies.

Share This Page