Problems with Classes PLEASE HELP!

Discussion in 'Plugin Development' started by Leo38638, Dec 31, 2014.

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

    Leo38638

    Well Im new in this thing but every time I make my plugin.yml it dosnt work look I will paste my code and some photos so you can help me

    Code:
    [13:59:27] [Server thread/INFO]: Starting minecraft server version 1.7.2
    [13:59:27] [Server thread/INFO]: Loading properties
    [13:59:27] [Server thread/INFO]: Default game type: SURVIVAL
    [13:59:27] [Server thread/INFO]: Generating keypair
    [13:59:28] [Server thread/INFO]: Starting Minecraft server on *:25568
    [13:59:28] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-1.7.2-R0.2-b2974jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.2)
    [13:59:28] [Server thread/ERROR]: Could not load 'plugins\KillDrops.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: com.cavariux.bukkit.Killerdrops.java
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) ~[CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:308) ~[CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231) [CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:233) [CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
    Caused by: java.lang.ClassNotFoundException: com.cavariux.bukkit.Killerdrops.java
        at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_65]
        at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_65]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_65]
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.7.0_65]
        at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) ~[CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) ~[CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_65]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_65]
        at java.lang.Class.forName0(Native Method) ~[?:1.7.0_65]
        at java.lang.Class.forName(Unknown Source) ~[?:1.7.0_65]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ~[CraftBukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        ... 9 more
    [13:59:28] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    [13:59:28] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
    [13:59:28] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    [13:59:28] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
    [13:59:28] [Server thread/INFO]: Preparing level "world"
    [13:59:28] [Server thread/INFO]: Preparing start region for level 0 (Seed: 2610551802641757988)
    [13:59:28] [Thread-7/WARN]: Could not get information about this CraftBukkit version; perhaps you are running a custom one?: IOException
    [13:59:28] [Thread-7/WARN]: Could not get latest artifact information: IOException
    [13:59:29] [Server thread/INFO]: Preparing start region for level 1 (Seed: 2610551802641757988)
    [13:59:29] [Server thread/INFO]: Preparing start region for level 2 (Seed: 2610551802641757988)
    [13:59:29] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [13:59:29] [Server thread/INFO]: Done (1.391s)! For help, type "help" or "?"
    [13:59:35] [Server thread/INFO]: CONSOLE: Stopping the server..[m
    [13:59:35] [Server thread/INFO]: Stopping server
    [13:59:35] [Server thread/INFO]: Saving players
    [13:59:35] [Server thread/INFO]: Saving worlds
    [13:59:35] [Server thread/INFO]: Saving chunks for level 'world'/Overworld
    [13:59:35] [Server thread/INFO]: Saving chunks for level 'world_nether'/Nether
    [13:59:35] [Server thread/INFO]: Saving chunks for level 'world_the_end'/The End
    [13:59:35] [Thread-4/INFO]: Stopping server
    [13:59:35] [Thread-4/INFO]: Saving players
    [13:59:35] [Thread-4/INFO]: Saving worlds
    [13:59:35] [Thread-4/INFO]: Saving chunks for level 'world'/Overworld
    
    My code is simple and only uses the enables:

    Code:
    package com.cavariux.bukkit;
    
    import org.bukkit.ChatColor;
    import org.bukkit.Material;
    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.EventPriority;
    import org.bukkit.event.entity.PlayerDeathEvent;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class Killerdrops extends JavaPlugin {
       
        @Override
        public void onEnable(){
            getLogger().info("KillDrops v1.0 has been Enabled");
        }
       
        @Override
        public void onDisable(){
            getLogger().info("KillDrops v1.0 has been Enabled");
        }
       
    }
    
    My Plugin.YML is like this:

    name: Killerdrops
    main: com.cavariux.bukkit.Killerdrops
    version: 1.0
    description: Cada vez que matas a alguien te daran dos gemas

    And my class and my plugin.yml is organized like this:


    [​IMG]

    PLEASE PLEASE HELP!
     
  2. Offline

    mrCookieSlime

    Locked, we do not support Offline Mode.
     
Thread Status:
Not open for further replies.

Share This Page