Finally done with plugin, and now...

Discussion in 'Plugin Development' started by Unscrewed, May 4, 2011.

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

    Unscrewed

    Hey guys,

    I was finally done with my plugin,
    I try to run it, and I got this error:

    Code:
    2011-05-04 14:19:03 [SEVERE] java.lang.Integer cannot be cast to java.lang.String (Is it up to date?)
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
    	at org.bukkit.command.PluginCommandYamlParser.parse(PluginCommandYamlParser.java:23)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:123)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:108)
    	at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    CB Build: 755
    Made my plugin on: 755
    My plugin includes: iConomy5
    Eclipse & Java: Up-to-date

    What does this mean?
     
  2. Offline

    rcjrrjcr

    Post your plugin.yml.
     
  3. Pretty sure it's the version in your plugin.yml that is causing the problem.
     
  4. Offline

    Unscrewed

    Code:
    name: RolePlay
    version: 0.1
    author: Unscrewed
    main: me.Unscrewed.RolePlay.RolePlay
    commands:
      rp:
        description: Every RolePlay Command
        usage: /<command> - Displays the RolePlay commands
      rp police:
        description: Be a Police Officer
        usage: /<command> - Lets you join this role
      rp robber:
        description: Be a Robber
        usage: /<command> - Lets you join this role
      911:
        description: Call a Police Officer
        usage: /<command> - Makes you call the police
     
  5. Offline

    rcjrrjcr

    Put 911 in quotes like
    Code:
    '911':
    
     
  6. Offline

    Unscrewed

    Thanks!
    Why did that help/why is that needed?
     
  7. Offline

    fullwall

    It's a number, so gets parsed as a number, when it needs to be a string.
     
  8. Offline

    kieran_

    Code:
    Integer.parseInt(String) 
    EDIT: NVM :p
     
Thread Status:
Not open for further replies.

Share This Page