errors

Discussion in 'Plugin Development' started by betterthanminecraft, Nov 16, 2011.

Thread Status:
Not open for further replies.
  1. i have tried to make a plugin but keep getting errors and i have tried everything to fix it but i can't.
    i have a lot of code so here is the file
    this is the error log
    Code:
    161 recipes
    17 achievements
    18:02:51 [INFO] Starting minecraft server version Beta 1.8.1
    18:02:51 [INFO] Loading properties
    18:02:51 [INFO] Starting Minecraft server on *:25565
    18:02:52 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1131
    -g86b7fa8-b1337jnks (MC: 1.8.1)
    18:02:52 [INFO] [Permissions] (Yeti) was initialized.
    18:02:52 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    18:02:52 [INFO] Preparing level "world"
    18:02:52 [INFO] Default game type: 0
    18:02:53 [INFO] Preparing start region for level 0 (Seed: -3730389725864817599)
    18:02:54 [INFO] Preparing spawn area: 28%
    18:02:55 [INFO] Preparing spawn area: 97%
    18:02:55 [INFO] Preparing start region for level 1 (Seed: 1012391811431312398)
    18:02:56 [SEVERE] java.lang.String cannot be cast to java.util.Map loading BtmCo
    mmands v0.1 (Is it up to date?)
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
            at org.bukkit.command.PluginCommandYamlParser.parse(PluginCommandYamlPar
    ser.java:26)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:273)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    18:02:56 [INFO] Server permissions file permissions.yml is empty, ignoring it
    18:02:56 [INFO] Done (0.336s)! For help, type "help" or "?"
    >
     
  2. Offline

    Lolmewn

    Can I see some code?
    I really want a quick look at the code, not have all of it.

    It seems like you are loading settings wrongly.
     
  3. You have to show the code... Your casting something wrong
     
  4. Offline

    ItsHarry

    Map map = new Map();
    String s = (String) map; <-- This is impossible, if a Map is a Map, how can it be a String?
     
  5. can anyone help
     
  6. Offline

    DDoS

    Post your plugin.yml. Your error is happening before onEnable() (and you don't have any custom constructor for your main class) and the stack trace points towards the command parser.

    Also, your code needs a lot of improvements, please revise it before your release it. Once we get the error fixed I'll point to you some of your errors.
     
  7. posted code and plugin.yml
     
  8. can anyone help
     
  9. re posted code db(Dot)tt/LaNix3qK
    replace (dot) with .
     
  10. Offline

    bleachisback

    all of your command names are spaced three times instead of four, and the first two descriptions are 3 instead of 4
     
  11. ok thanks

    now my server log changed to
    Code:
    174 recipes
    27 achievements
    14:11:22 [INFO] Starting minecraft server version 1.0.0
    14:11:22 [INFO] Loading properties
    14:11:22 [INFO] Starting Minecraft server on *:25565
    14:11:23 [INFO] This server is running Craftbukkit version git-Bukkit-1.8.1-R4-2
    6-gb6ac413-b1502jnks (MC: 1.0.0) (Implementing API version 1.0.0-R1-SNAPSHOT)
    14:11:23 [INFO] [Permissions] (Yeti) was initialized.
    14:11:23 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    14:11:23 [INFO] Preparing level "world"
    14:11:23 [INFO] Default game type: 0
    14:11:23 [INFO] Preparing start region for level 0 (Seed: 3850433055)
    14:11:24 [INFO] Preparing spawn area: 61%
    14:11:25 [INFO] Preparing start region for level 1 (Seed: -5056521990863795864)
    14:11:25 [INFO] Preparing start region for level 2 (Seed: 4598507952907195893)
    14:11:25 [INFO] Preparing spawn area: 0%
    14:11:26 [SEVERE] java.lang.String cannot be cast to java.util.Map loading BtmCo
    mmands v0.1 (Is it up to date?)
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
            at org.bukkit.command.PluginCommandYamlParser.parse(PluginCommandYamlPar
    ser.java:26)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:273)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:176)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:159
    )
            at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:337)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:324)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:161)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:388)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    14:11:26 [INFO] Server permissions file permissions.yml is empty, ignoring it
    14:11:26 [INFO] Done (0.313s)! For help, type "help" or "?"
    >
    
    new code
    db(DOT)tt/Lg2Woakz
    replace (dot) with .

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 21, 2016
  12. Offline

    halley

  13. <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 12, 2016
Thread Status:
Not open for further replies.

Share This Page