Solved Not extending to JavaPlugin?

Discussion in 'Plugin Development' started by iClipse, Oct 1, 2016.

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

    iClipse

    Im making a plugin rightnow for some unrealesed server, and part of it is the shop. Now I am good with the shop, but for some reason the extend to Java Plugin is underlined in red, which means the plugin wont work. Any help on hoe to fix this?
    Code:
    package Commands;
    
    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    import org.bukkit.Material;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.inventory.Inventory;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.inventory.meta.ItemMeta;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class OpenShop extends JavaPlugin ;
    { 
    public boolean onCommand(CommandSender theSender, Command cmd, String commandLabel, String[] args)
    {
        if(commandLabel.equalsIgnoreCase("shop"))
        {
            Player player = (Player) theSender;
            {
            private void openGUI (Player player)
            {
                Inventory inv = Bukkit.createInventory(null, 18, ChatColor.GOLD + "Shop");
               
                ItemStack ores = new ItemStack(Material.IRON_INGOT);
                ItemMeta oresMeta = ores.getItemMeta();
    
     
  2. Offline

    timtower Administrator Administrator Moderator

    @iClipse Do you see the semi-colon at the end of the line with public class
     
  3. Offline

    iClipse

    oh, didnt notice that. Probably typed it without thinking.

    THanks
     
Thread Status:
Not open for further replies.

Share This Page