Solved Plugin does not get detected?

Discussion in 'Plugin Help/Development/Requests' started by dragonhunting, Apr 3, 2015.

Thread Status:
Not open for further replies.
  1. Hey all,

    It is a long time since i have visited the forums, and my plugin.
    It just hit 800 downloads and to celebrate that, i trought i would give it an update.
    So i started eclipse and fixed the library and the build path. All the errors dissapeared, so i put it in my
    test server, and did /plugins. But my plugin din't show up and din't create a config.
    I have no clue what it can be. Can someone please help me?
    It's build on spigot 1.8.

    Regards,
    dragonhunting
     
  2. Offline

    Zombie_Striker

    Are you sure your plugin.yml is correct? did you make any others changes? does it leave a log on startup?
     
  3. No i did not.
    Here is the plugin.yml:
    Code:
    name: DragonCore
    main: me.dragonhunting.DragonCore.Main
    version: 2.4
    description: DragonCore plugin
    author: dragonhunting
    commands:
        test:
            description: Test For Lag.
        vote:
            description: Vote Command.
        staff:
            description: List Off All Our Staff.
        dragoncore:
            description: Main DragonCore Command.
        website:
            description: Visit Our Website.
    
    Regards,
    dragonhunting
     
  4. Offline

    Zombie_Striker

    • Problems with NamingConventions seem to be coming up a lot.
    • You have 4 spaces for test instead of 3, and 8 for description when it should just be 6. (This is a really big problem)
    After fixing these problems, does your plugin leave a log on server Start up (specifically the enabling plugins section)
     
  5. Offline

    Gamecube762

    @Zombie_Striker The amount of spaces doesn't matter, as long as if its consistent, YAML has no problem with it.
    You can test his plugin.yml here for errors.

    @dragonhunting Mind posting your start-up log?
     
    Konato_K likes this.
  6. @Gamecube762

    Code:
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128M; sup
    port was removed in 8.0
    Loading libraries, please wait...
    [19:36:18 INFO]: Starting minecraft server version 1.8
    [19:36:18 INFO]: Loading properties
    [19:36:18 INFO]: Default game type: SURVIVAL
    [19:36:18 INFO]: This server is running CraftBukkit version git-Spigot-c3c767f-3
    3d5de3 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
    [19:36:18 INFO]: Debug logging is disabled
    [19:36:18 INFO]: Server Ping Player Sample Count: 12
    [19:36:18 INFO]: Using 4 threads for Netty based IO
    [19:36:18 INFO]: Generating keypair
    [19:36:18 INFO]: Starting Minecraft server on *:25565
    [19:36:18 INFO]: Set PluginClassLoader as parallel capable
    [19:36:18 INFO]: [DragonCore] 2.4Is Enabled
    [19:36:18 ERROR]: Could not load 'plugins\DragonCoreV2.4.jar' in folder 'plugins
    '
    org.bukkit.plugin.InvalidPluginException: java.lang.NullPointerException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:135) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:329) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:251) [spigot.jar:git-Spigot-c3c767f-33d5de3]
            at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.ja
    va:291) [spigot.jar:git-Spigot-c3c767f-33d5de3]
            at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.jav
    a:152) [spigot.jar:git-Spigot-c3c767f-33d5de3]
            at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java
    :505) [spigot.jar:git-Spigot-c3c767f-33d5de3]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_40]
    Caused by: java.lang.NullPointerException
            at me.dragonhunting.DragonCore.Main.<init>(Main.java:16) ~[?:?]
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    ~[?:1.8.0_40]
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    ~[?:1.8.0_40]
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce) ~[?:1.8.0_40]
            at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_4
    0]
            at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_40]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.jav
    a:76) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:131) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
            ... 6 more
    [19:36:18 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
    [19:36:18 INFO]: Preparing level "world"
    [19:36:18 INFO]: -------- World Settings For [world] --------
    [19:36:18 INFO]: Item Merge Radius: 2.5
    [19:36:18 INFO]: Item Despawn Rate: 6000
    [19:36:18 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [19:36:18 INFO]: Arrow Despawn Rate: 1200
    [19:36:18 INFO]: Chunks to Grow per Tick: 650
    [19:36:18 INFO]: Clear tick list: false
    [19:36:18 INFO]: Experience Merge Radius: 3.0
    [19:36:18 INFO]: Mob Spawn Range: 4
    [19:36:18 INFO]: Anti X-Ray: true
    [19:36:18 INFO]:        Engine Mode: 1
    [19:36:18 INFO]:        Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74,
    82, 129, 130]
    [19:36:18 INFO]:        Replace Blocks: [1, 5]
    [19:36:18 INFO]: Nerfing mobs spawned from spawners: false
    [19:36:18 INFO]: Cactus Growth Modifier: 100%
    [19:36:18 INFO]: Cane Growth Modifier: 100%
    [19:36:18 INFO]: Melon Growth Modifier: 100%
    [19:36:18 INFO]: Mushroom Growth Modifier: 100%
    [19:36:18 INFO]: Pumpkin Growth Modifier: 100%
    [19:36:18 INFO]: Sapling Growth Modifier: 100%
    [19:36:18 INFO]: Wheat Growth Modifier: 100%
    [19:36:18 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [19:36:18 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    
    [19:36:18 INFO]: Alternative Hopper Ticking: false
    [19:36:18 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [19:36:18 INFO]: Random Lighting Updates: false
    [19:36:18 INFO]: Structure Info Saving: true
    [19:36:18 INFO]: Sending up to 10 chunks per packet
    [19:36:18 INFO]: Max TNT Explosions: 100
    [19:36:18 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [19:36:18 INFO]: Zombie Aggressive Towards Villager: true
    [19:36:18 INFO]: View Distance: 10
    [19:36:18 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
    [19:36:18 INFO]: Max Entity Collisions: 8
    [19:36:19 INFO]: -------- World Settings For [world_nether] --------
    [19:36:19 INFO]: Item Merge Radius: 2.5
    [19:36:19 INFO]: Item Despawn Rate: 6000
    [19:36:19 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [19:36:19 INFO]: Arrow Despawn Rate: 1200
    [19:36:19 INFO]: Chunks to Grow per Tick: 650
    [19:36:19 INFO]: Clear tick list: false
    [19:36:19 INFO]: Experience Merge Radius: 3.0
    [19:36:19 INFO]: Mob Spawn Range: 4
    [19:36:19 INFO]: Anti X-Ray: true
    [19:36:19 INFO]:        Engine Mode: 1
    [19:36:19 INFO]:        Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74,
    82, 129, 130]
    [19:36:19 INFO]:        Replace Blocks: [1, 5]
    [19:36:19 INFO]: Nerfing mobs spawned from spawners: false
    [19:36:19 INFO]: Cactus Growth Modifier: 100%
    [19:36:19 INFO]: Cane Growth Modifier: 100%
    [19:36:19 INFO]: Melon Growth Modifier: 100%
    [19:36:19 INFO]: Mushroom Growth Modifier: 100%
    [19:36:19 INFO]: Pumpkin Growth Modifier: 100%
    [19:36:19 INFO]: Sapling Growth Modifier: 100%
    [19:36:19 INFO]: Wheat Growth Modifier: 100%
    [19:36:19 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [19:36:19 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    
    [19:36:19 INFO]: Alternative Hopper Ticking: false
    [19:36:19 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [19:36:19 INFO]: Random Lighting Updates: false
    [19:36:19 INFO]: Structure Info Saving: true
    [19:36:19 INFO]: Sending up to 10 chunks per packet
    [19:36:19 INFO]: Max TNT Explosions: 100
    [19:36:19 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [19:36:19 INFO]: Zombie Aggressive Towards Villager: true
    [19:36:19 INFO]: View Distance: 10
    [19:36:19 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
    [19:36:19 INFO]: Max Entity Collisions: 8
    [19:36:19 INFO]: -------- World Settings For [world_the_end] --------
    [19:36:19 INFO]: Item Merge Radius: 2.5
    [19:36:19 INFO]: Item Despawn Rate: 6000
    [19:36:19 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [19:36:19 INFO]: Arrow Despawn Rate: 1200
    [19:36:19 INFO]: Chunks to Grow per Tick: 650
    [19:36:19 INFO]: Clear tick list: false
    [19:36:19 INFO]: Experience Merge Radius: 3.0
    [19:36:19 INFO]: Mob Spawn Range: 4
    [19:36:19 INFO]: Anti X-Ray: true
    [19:36:19 INFO]:        Engine Mode: 1
    [19:36:19 INFO]:        Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74,
    82, 129, 130]
    [19:36:19 INFO]:        Replace Blocks: [1, 5]
    [19:36:19 INFO]: Nerfing mobs spawned from spawners: false
    [19:36:19 INFO]: Cactus Growth Modifier: 100%
    [19:36:19 INFO]: Cane Growth Modifier: 100%
    [19:36:19 INFO]: Melon Growth Modifier: 100%
    [19:36:19 INFO]: Mushroom Growth Modifier: 100%
    [19:36:19 INFO]: Pumpkin Growth Modifier: 100%
    [19:36:19 INFO]: Sapling Growth Modifier: 100%
    [19:36:19 INFO]: Wheat Growth Modifier: 100%
    [19:36:19 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [19:36:19 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    
    [19:36:19 INFO]: Alternative Hopper Ticking: false
    [19:36:19 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [19:36:19 INFO]: Random Lighting Updates: false
    [19:36:19 INFO]: Structure Info Saving: true
    [19:36:19 INFO]: Sending up to 10 chunks per packet
    [19:36:19 INFO]: Max TNT Explosions: 100
    [19:36:19 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [19:36:19 INFO]: Zombie Aggressive Towards Villager: true
    [19:36:19 INFO]: View Distance: 10
    [19:36:19 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
    [19:36:19 INFO]: Max Entity Collisions: 8
    [19:36:19 INFO]: Preparing start region for level 0 (Seed: -4839298378808470335)
    
    [19:36:20 INFO]: Preparing spawn area: 97%
    [19:36:20 INFO]: Preparing start region for level 1 (Seed: -4839298378808470335)
    
    [19:36:20 INFO]: Preparing start region for level 2 (Seed: -4839298378808470335)
    
    [19:36:21 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [19:36:21 INFO]: Done (2.400s)! For help, type "help" or "?"
    Regards,
    dragonhunting
     
  7. Offline

    Phishy

    Can you paste your Main Class?
     
  8. Last edited: Apr 3, 2015
  9. Offline

    Gamecube762

    @dragonhunting
    I believe you have incorrectly used brackets for onEnable()
    Code:
        @Override
        public void onEnable() {
        }
        {
        <code>
        }
    
    //it should be
        @Override
        public void onEnable() {
        <code>
        }
     
  10. @Gamecube762

    Thank you! Problem fixed!
    But now there's another problem; the default config won't be generated. All it will is generate an empty folder Config.yml
    Do you guys know what this could be?

    Regards,
    dragonhunting

    EDIT: this should be the config:
    Code:
    staff:
      - WhoIsStaffHere
    
    vote:
      - VoteLink1
      - VoteLink2
     
    website: ServerWebsiteHere
    
    It does work when you copy it in the config file wich is a good thing!
     
  11. Offline

    Gamecube762

    @dragonhunting You would want saveDefaultConfig() to be running in your onEnable() and make sure your config.yml is in the same folder as your plugin.yml
     
    dragonhunting likes this.
  12. Thank you!
    Plugin is fixed now thanks to @Gamecube762

    Thread solved.
     
  13. Moved to Bukkit Alternates.
     
Thread Status:
Not open for further replies.

Share This Page