Solved Need Help Debugging a CompassMenu Plugin

Discussion in 'Plugin Development' started by SuperNovaMC, Apr 2, 2014.

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

    SuperNovaMC

    This is what I have so far, the bug is somewhere on line 22: return true;

    This plugin is being developed privately for NovaMC, and this is the Core.

    -------------------------------------------------------------------------------------------------------------

    package me.MineStein.CompassPort;

    import org.bukkit.Bukkit;
    import org.bukkit.event.Listener;
    import org.bukkit.inventory.Inventory;
    import org.bukkit.plugin.java.JavaPlugin;

    public class Core extends JavaPlugin implements Listener{

    @Override
    public void onEnable() {

    }

    @Override
    public void onDisable() {

    }

    public static Inventory getCompassInventory(){

    return true;

    Inventory inv=Bukkit.createInventory(null, 9, "Click on Item!");

    }
    }
     
  2. Offline

    Glumpz

    You are getting an error because you are attempting to return a boolean when you should be returning an Inventory.
     
  3. Offline

    SuperNovaMC

    Glumpz
    Thanks!
     
  4. Offline

    mazentheamazin

  5. Offline

    SuperNovaMC

Thread Status:
Not open for further replies.

Share This Page