None of my plugins work anymore... Here's a log.

Discussion in 'Plugin Help/Development/Requests' started by MCJoshua345, Dec 31, 2014.

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

    MCJoshua345

    The title says it all, here's a log: http://pastebin.com/m87FWuwB
    I'm pretty sure this is a easy fix, i saw the 'Oops! I broke your plugins!" Post, but they way that there was a reference was different than I coded it. Here's my version of that code (Or something like it):

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

    package me.mcjservers.main;

    import me.mcjservers.mcjkitpvp.PlayerFighters;

    import org.bukkit.ChatColor;
    import org.bukkit.Material;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.enchantments.Enchantment;
    import org.bukkit.entity.Player;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.inventory.meta.ItemMeta;
    import org.bukkit.plugin.PluginManager;
    import org.bukkit.plugin.java.JavaPlugin;

    public class Main extends JavaPlugin{

    private static Main instance;

    public void log(String string) {
    System.out.println(string);
    }
    public static Main getInstance(){
    return instance;
    }

    public void registerFighters(){
    PluginManager pm = getServer().getPluginManager();
    pm.registerEvents(new PlayerFighters(this), this);
    }

    public void registerCommands(){

    }

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

    Hope you can help!
     
  2. Offline

    MisterErwin

    @MCJoshua345 You have compiled it with another java version than your server is running..

    Also: This is something for Bukkit Alternatives
     
  3. @MisterErwin It was already here :p

    Moved to Bukkit Alternates.
     
  4. Offline

    MisterErwin

    @bwfcwalshy Now you know how tim felt a few months ago :p
     
  5. Offline

    MCJoshua345

  6. Offline

    MisterErwin

    @MCJoshua345 I'm guessing that you compiled your plugin with the java 8 JDK while your server only has the 1.7 or 1.6 JRE.

    I suggest compiling it w/ another SDK - just google how to change it ;)
     
  7. Offline

    MCJoshua345

    Ya, that makes sense. I have a java 8 jdk and java 7 jre both 64-bit, so im probably going to uninstall both, and reinstall the 8 jdk, and accept the 8 jre. Thanks, and sorry that i dont care for spelling and grammar.
     
Thread Status:
Not open for further replies.

Share This Page