All My Plugins Have The Same Error Please Help

Discussion in 'Plugin Development' started by Deaven, Jun 24, 2016.

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

    Deaven

    This is the error i get and i get all the same plugins i make this recently started happening:
    7:57:26 PM [SEVERE] Could not load 'plugins\Welcome+.jar' in folder 'plugins'
    7:57:26 PM at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_65]
    7:57:26 PM at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_65]
    7:57:26 PM at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_65]
    7:57:26 PM ... 14 more

    My main class:

    package me.deaven;

    import org.bukkit.plugin.java.JavaPlugin;

    public class main extends JavaPlugin {

    public void onEnable() {
    getServer().getPluginManager().registerEvents(new LoginListener(), this);
    }
    }

    this is my Listener Class:

    package me.deaven;

    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.Listener;
    import org.bukkit.event.player.PlayerJoinEvent;

    public class LoginListener implements Listener {
    @EventHandler
    public void onJoin(PlayerJoinEvent e) {
    if(!(e.getPlayer().hasPlayedBefore()));
    Bukkit.broadcastMessage(ChatColor.DARK_AQUA + "Welcome " + ChatColor.AQUA + e.getPlayer() + ChatColor.DARK_AQUA + "To The " + ChatColor.RED + "Vertigo Network" );
    }

    }
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    Deaven

  4. @Deaven You are putting a semicolon after the if. Please look at the Java tutorials before doing Bukkit
     
  5. Offline

    I Al Istannen

    @Deaven
    Could you post the contents of the <server directory>/logs/latest.log, after a restart?

    @bwfcwalshy
    Is true and valid, but doesn't explain the errors with loading 3 plugins:
    Code:
    11:20:21 PM [SEVERE] Could not load 'plugins\Welcome+.jar' in folder 'plugins'
    11:20:21 PM     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_65]
    11:20:21 PM     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_65]
    11:20:21 PM     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_65]
    11:20:21 PM     ... 14 more
    11:20:21 PM     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_65]
    11:20:21 PM     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_65]
    11:20:21 PM     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_65]
    11:20:21 PM     ... 14 more
     
  6. Offline

    Zombie_Striker

    @I Al Istannen
    Are there any errors in your IDE? Are you sure your plugin.yml is correct? Have you tried debugging? If so, at what point does your plugin stop working?
     
  7. Offline

    I Al Istannen

    @Zombie_Striker
    Not quite sure what you want from me there :p


    @Deaven
    Look at the post from Zombie_Striker, I think it was meant for you. But posting the whole error (from the log file) would be nice too.
     
  8. Offline

    Deaven

    I Have Got Working Thank you Anyone that Has tried to help me i appreciate it :)
     
  9. Offline

    Zombie_Striker

    @Deaven
    Mark this thread as solved if your problem has been solved.
     
Thread Status:
Not open for further replies.

Share This Page