1.8.8 what thats means?

Discussion in 'Spigot Plugin Development' started by _OLIV3R, Mar 7, 2020.

Thread Status:
Not open for further replies.
  1. guys i have a error what thats means ?

    i know my engish is BAD


    Code (Text):
    [12:42:31] [Server thread/INFO]: [Gamemode_Menu] Enabling Gamemode_Menu v1.0
    [12:42:31] [Server thread/ERROR]: Error occurred while enabling Gamemode_Menu v1.0 (Is it up to date?)
    java.lang.ClassCastException: de.oliver.command.Command cannot be cast to org.bukkit.event.Listener
        at de.oliver.main.Main.onEnable(Main.java:16) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot.jar:git-Spigot-db6de12-18fbb24]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
    [12:42:31] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [12:42:31] [Server thread/INFO]: Done (18,432s)! For help, type "help" or "?"
     
    #1 _OLIV3R, Mar 7, 2020
    Last edited by a moderator: Mar 7, 2020
  2. Inside your main class, line 16 shows that you are casting a Command to a Listener. Something like ((Listener) Command) . It's saying that can't be done, can you show us your full code? Meanwhile, since this is a plugin you developed that is showing an error, this can go in Spigot Plugin Development, but you don't have to re-create a new one, just leave it here.
     
    #2 Wilsoon, Mar 7, 2020
    Last edited: Mar 7, 2020
    • Agree Agree x 4
  3. I have that error fixed !thank you :p
     
    • Like Like x 1
    • Friendly Friendly x 1
  4. Close the thread please
     
    • Like Like x 1
    • Optimistic Optimistic x 1
  5. Unnecessary bumping of a 3 day old thread, I hope you realise that.
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.