Whats my mistake?

Discussion in 'Plugin Development' started by heracless123, Jan 21, 2017.

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

    heracless123

    Hello Community,
    I started to make a Plugin for a minigame Lobby. I tryed out what i writed yet but it didn´t worked yet.
    here are the main Classes:

    AvatarGames | Link (thats my main class and i created a yml thats not the problem)
    Events | Link
    Countdown | Link

    consol show:
    Show Spoiler

    thats what the consol said:
    Loading libraries, please wait...
    [18:59:07 INFO]: Starting minecraft server version 1.9.4
    [18:59:07 INFO]: Loading properties
    [18:59:07 INFO]: Default game type: CREATIVE
    [18:59:07 INFO]: This server is running CraftBukkit version git-Spigot-798f32d-0
    cd0397 (MC: 1.9.4) (Implementing API version 1.9.4-R0.1-SNAPSHOT)
    [18:59:07 INFO]: Debug logging is disabled
    [18:59:07 INFO]: Server Ping Player Sample Count: 12
    [18:59:07 INFO]: Using 4 threads for Netty based IO
    [18:59:07 INFO]: Generating keypair
    [18:59:08 INFO]: Starting Minecraft server on *:25565
    [18:59:08 INFO]: Using default channel type
    [18:59:08 WARN]: Plugin `Avatar_Games v1.0' uses the space-character (0x20) in i
    ts name `Avatar Games' - this is discouraged
    [18:59:08 INFO]: Set PluginClassLoader as parallel capable
    [18:59:08 ERROR]: Could not load 'plugins\AvatarGames.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: Abnormal plugin type
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.jav
    a:80) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:131) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:329) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:251) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at org.bukkit.craftbukkit.v1_9_R2.CraftServer.loadPlugins(CraftServer.ja
    va:297) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.DedicatedServer.init(DedicatedServer.jav
    a:200) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java
    :532) [spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
    Caused by: java.lang.InstantiationException: de.nilsschaefer.avatargames.AvatarG
    ames
    at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_111]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.jav
    a:76) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    ... 7 more
    Caused by: java.lang.NoSuchMethodException: de.nilsschaefer.avatargames.AvatarGa
    mes.<init>()
    at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.8.0_111]
    at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_111]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.jav
    a:76) ~[spigot-1.9.4.jar:git-Spigot-798f32d-0cd0397]
    ... 7 more
    [18:59:08 INFO]: [WorldEdit] Loading WorldEdit v6.1.5;4651611
    [18:59:08 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
    [18:59:08 INFO]: Preparing level "world"
    [18:59:08 INFO]: -------- World Settings For [world] --------
    [18:59:08 INFO]: Item Merge Radius: 2.5
    [18:59:08 INFO]: Item Despawn Rate: 6000
    [18:59:08 INFO]: Arrow Despawn Rate: 1200
    [18:59:08 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [18:59:08 INFO]: View Distance: 10
    [18:59:08 INFO]: Zombie Aggressive Towards Villager: true
    [18:59:08 INFO]: Experience Merge Radius: 3.0
    [18:59:08 INFO]: Mob Spawn Range: 4
    [18:59:08 INFO]: Cactus Growth Modifier: 100%
    [18:59:08 INFO]: Cane Growth Modifier: 100%
    [18:59:08 INFO]: Melon Growth Modifier: 100%
    [18:59:08 INFO]: Mushroom Growth Modifier: 100%
    [18:59:08 INFO]: Pumpkin Growth Modifier: 100%
    [18:59:08 INFO]: Sapling Growth Modifier: 100%
    [18:59:08 INFO]: Wheat Growth Modifier: 100%
    [18:59:08 INFO]: NetherWart Growth Modifier: 100%
    [18:59:08 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [18:59:08 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64

    [18:59:08 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [18:59:08 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [18:59:08 INFO]: Random Lighting Updates: false
    [18:59:08 INFO]: Nerfing mobs spawned from spawners: false
    [18:59:08 INFO]: Structure Info Saving: true
    [18:59:08 INFO]: Max TNT Explosions: 100
    [18:59:08 INFO]: Max Entity Collisions: 8
    [18:59:08 INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
    [18:59:08 INFO]: -------- World Settings For [world_nether] --------
    [18:59:08 INFO]: Item Merge Radius: 2.5
    [18:59:08 INFO]: Item Despawn Rate: 6000
    [18:59:08 INFO]: Arrow Despawn Rate: 1200
    [18:59:08 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [18:59:08 INFO]: View Distance: 10
    [18:59:08 INFO]: Zombie Aggressive Towards Villager: true
    [18:59:08 INFO]: Experience Merge Radius: 3.0
    [18:59:08 INFO]: Mob Spawn Range: 4
    [18:59:08 INFO]: Cactus Growth Modifier: 100%
    [18:59:08 INFO]: Cane Growth Modifier: 100%
    [18:59:08 INFO]: Melon Growth Modifier: 100%
    [18:59:08 INFO]: Mushroom Growth Modifier: 100%
    [18:59:08 INFO]: Pumpkin Growth Modifier: 100%
    [18:59:08 INFO]: Sapling Growth Modifier: 100%
    [18:59:08 INFO]: Wheat Growth Modifier: 100%
    [18:59:08 INFO]: NetherWart Growth Modifier: 100%
    [18:59:08 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [18:59:08 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64

    [18:59:08 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [18:59:08 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [18:59:08 INFO]: Random Lighting Updates: false
    [18:59:08 INFO]: Nerfing mobs spawned from spawners: false
    [18:59:08 INFO]: Structure Info Saving: true
    [18:59:08 INFO]: Max TNT Explosions: 100
    [18:59:08 INFO]: Max Entity Collisions: 8
    [18:59:08 INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
    [18:59:09 INFO]: -------- World Settings For [world_the_end] --------
    [18:59:09 INFO]: Item Merge Radius: 2.5
    [18:59:09 INFO]: Item Despawn Rate: 6000
    [18:59:09 INFO]: Arrow Despawn Rate: 1200
    [18:59:09 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [18:59:09 INFO]: View Distance: 10
    [18:59:09 INFO]: Zombie Aggressive Towards Villager: true
    [18:59:09 INFO]: Experience Merge Radius: 3.0
    [18:59:09 INFO]: Mob Spawn Range: 4
    [18:59:09 INFO]: Cactus Growth Modifier: 100%
    [18:59:09 INFO]: Cane Growth Modifier: 100%
    [18:59:09 INFO]: Melon Growth Modifier: 100%
    [18:59:09 INFO]: Mushroom Growth Modifier: 100%
    [18:59:09 INFO]: Pumpkin Growth Modifier: 100%
    [18:59:09 INFO]: Sapling Growth Modifier: 100%
    [18:59:09 INFO]: Wheat Growth Modifier: 100%
    [18:59:09 INFO]: NetherWart Growth Modifier: 100%
    [18:59:09 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [18:59:09 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64

    [18:59:09 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    [18:59:09 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [18:59:09 INFO]: Random Lighting Updates: false
    [18:59:09 INFO]: Nerfing mobs spawned from spawners: false
    [18:59:09 INFO]: Structure Info Saving: true
    [18:59:09 INFO]: Max TNT Explosions: 100
    [18:59:09 INFO]: Max Entity Collisions: 8
    [18:59:09 INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
    [18:59:09 INFO]: Preparing start region for level 0 (Seed: 27594263)
    [18:59:10 INFO]: Preparing spawn area: 38%
    [18:59:10 INFO]: Preparing start region for level 1 (Seed: 1537040994340584540)
    [18:59:11 INFO]: Preparing spawn area: 69%
    [18:59:12 INFO]: Preparing start region for level 2 (Seed: 1537040994340584540)
    [18:59:12 INFO]: [WorldEdit] Enabling WorldEdit v6.1.5;4651611
    [18:59:12 INFO]: WEPIF: Using the Bukkit Permissions API.
    [18:59:13 INFO]: [WorldEdit] Using com.sk89q.worldedit.bukkit.adapter.impl.Spigo
    t_v1_9_R2 as the Bukkit adapter
    [18:59:13 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [18:59:13 INFO]: Done (4,724s)! For help, type "help" or "?"
    >


    I think there is somethink wrong how i get the variable player from Events to my main pls can you help me
    thank you in advance.
     
    Last edited: Jan 21, 2017
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    heracless123

    I want to make a countdown shown in the exp bar of the player
     
  4. Offline

    Irantwomiles

    Any errors? Have you tried printing out the actual countdown number and seeing if the runnable is working correctly?
     
  5. Offline

    heracless123

    Added consol to the question.

    Can noone help me?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jan 22, 2017
  6. Offline

    MrGriefer_

    I believe that the first error comes from the line
    PHP:
    new Countdown(AvatarGames.plugin,player);
    in your onEnable() method. Why don't you create a method call it whatever you like and then call the method in onEnable().

    Second error (NoSuchMethodException) is because of the constructor in your main class. Bukkit will call it when enabling your plugin which causes the exception.
     
    Last edited: Jan 22, 2017
  7. Offline

    heracless123

    Thx u mait first good answer
     
  8. Offline

    MrGriefer_

    You welcome, I'm glad that I've helped you! :)
     
Thread Status:
Not open for further replies.

Share This Page