plugin not showing up

Discussion in 'Plugin Development' started by racertwist, Nov 2, 2012.

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

    racertwist

    i dont know whats wrong with my plugin but it shows this:

    02.11 13:58:03 [Server] INFO ^
    02.11 13:58:03 [Server] INFO arena creation plugin
    02.11 13:58:03 [Server] INFO in "<reader>", line 5, column 1:
    02.11 13:58:03 [Server] INFO found character '\t' that cannot start any token
    02.11 13:58:03 [Server] INFO Caused by: while scanning for the next token

    this is from the console im not sure whats wrong with it and i dont understand what this means
    some one please help?
    heres the plugin.yml if this helps:
    Code:
    name: World
    main: me.racertwist.Worldgen
    version: 3.2
    description: >
              arena creation plugin
    commands:
      listarena:
            description: Lists arena spawns!!!!
      setarena:
          description: Sets Arena at your location /setarena <arena-name>
      ready:
          description: ready up in the arena and teleport you in!!!    
     
  2. Offline

    callum.thepro

    it says description: >

    instead of that put at the start of the line description: (plugindescription) you dont need >, try this and tell me how it works :D
     
  3. Offline

    coldandtired

    description: >
    arena creation plugin

    should be

    description: arena creation plugin
     
  4. Offline

    racertwist

    umm it still doesnt work :/
    it now says this:
    02.11 15:05:06 [Server] INFO ^
    02.11 15:05:06 [Server] INFO description: Sets Arena at you ...
    02.11 15:05:06 [Server] INFO in "<reader>", line 9, column 3:
    02.11 15:05:06 [Server] INFO found character '\t' that cannot start any token
    02.11 15:05:06 [Server] INFO Caused by: while scanning for the next token
    Code:
    name: World
    main: me.racertwist.Worldgen
    version: 3.2
    description: arena creation plugin
    commands:
      listarena:
        description: Lists arena spawns!!!!
      setarena:
          description: Sets Arena at your location /setarena <arena-name>
      ready:
          description: ready up in the arena and teleport you in!!!        
     
  5. Offline

    coldandtired

    It means you've used the tab key instead of using spaces. YAML can't have any tabs used at all.
     
    MrBluebear3 likes this.
  6. Offline

    racertwist

    oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooh
    my life makes sense now :p

    yet another error:
    02.11 16:05:08 [Server] INFO ^
    02.11 16:05:08 [Server] INFO ... the arena and teleport you in!!!
    02.11 16:05:08 [Server] INFO in "<reader>", line 11, column 63:
    02.11 16:05:08 [Server] INFO found character '\t' that cannot start any token
    02.11 16:05:08 [Server] INFO Caused by: while scanning for the next token
    i have used spaces and no tabs

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
    MrBluebear3 likes this.
  7. Offline

    Hoolean

    You must have used a tab, nothing else can cause that error XD

    Please could you post your plugin.yml?
     
  8. Offline

    Lolmewn

    Maybe there's still one left though, what's on line 11?
     
  9. Offline

    racertwist

    here it is
    Code:
    name: World
    main: me.racertwist.Worldgen
    version: 3.2
    description: arena creation plugin
    commands:
      listarena:
        description: Lists arena spawns!!!!
      setarena:
        description: Sets Arena at your location /setarena <arena-name>
      ready:
        description: ready up in the arena and teleport you in!!!        
     
  10. Offline

    Hoolean

    :confused:

    Try deleting the spaces at the end of the last line, then recompile it, then reload your server! Can't see any tabs :/
     
  11. Offline

    callum.thepro

    make sure you put the name of your main class at the end of me.racertwist.Worldgen
     
  12. Offline

    racertwist

    see! thats how i was confused...
    i will do that i forgot about this website thanks ^_^
    i will also do that...

    ERROR:

    while scanning for the next token
    found character '\t' that cannot start any token
    in "<unicode string>", line 11, column 63:
    ... the arena and teleport you in!!!
    ^

    now what does this mean?


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

    Hoolean

    Apparently there is a tab between 'in' and 'the'!
    Code:
    description: ready up in the arena and teleport you in!!! 
     
  14. Offline

    racertwist

    well then! XD
    it was after the whole line...
    im gonna try it now

    02.11 19:25:56 [Server] INFO at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:203)
    02.11 19:25:56 [Server] INFO at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:227)
    02.11 19:25:56 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    02.11 19:25:56 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    02.11 19:25:56 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:154)
    02.11 19:25:56 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: me.racertwist.Worldgen
    02.11 19:25:56 [Server] SEVERE Could not load 'plugins/WorldGenerator.jar' in folder 'plugins'
    02.11 19:25:56 [Server] INFO Entities enhanced[0] subclassed[1]
    what, wha why?! :/

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

    Hoolean

    Code:
    main: me.racertwist.Worldgen.
    <--- Add the name of your main class to the end of that (with no tabs :))
     
  16. Offline

    chaseoes

    Post your main class. Sounds like you got that line wrong in your plugin.yml.
     
  17. Offline

    racertwist

    ooh yeah forgot to do dat

    uuuh i already did that....
    my classes are... world and me.racertwist.worldgen(this is the main class)
    Code:
    name: World
    main: me.racertwist.Worldgen
    version: 3.2
    description: arena creation plugin
    commands:
      listarena:
        description: Lists arena spawns!!!!
      setarena:
        description: Sets Arena at your location /setarena <arena-name>
      ready:
        description: ready up in the arena and teleport you in!!!
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
    MrBluebear3 likes this.
  18. Offline

    chaseoes

     
  19. Offline

    racertwist

    what do you mean the code?
     
  20. Offline

    Hoolean

    :confused:

    The bit with onEnable() etc...
     
  21. Offline

    Hoolean

    racertwist

    It should be as follows:

    Code:
    main: me.racertwist.WorldGen.World
     
  22. Offline

    Njol

    Your package is 'me.racertwist.worldgen' and the class is called 'World', thus you have to put 'me.racertwist.worldgen.World' as 'main' in your plugin.yml.
     
  23. Offline

    Hoolean

    Ninja'd much?
     
  24. Offline

    racertwist

    lol thanks for helping... now to delete the source no one shall have it XD

    04.11 19:43:34 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: me.racertwist.Worldgen.World
    04.11 19:43:34 [Server] SEVERE Could not load 'plugins/WorldGenerator.jar' in folder 'plugins'
    04.11 19:43:34 [Server] INFO Entities enhanced[0] subclassed[1]
    04.11 19:43:34 [Server] INFO SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    04.11 19:43:34 [Server] INFO DataSourcePool [TimeShift] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    this showed up :(


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

    Hoolean

    Need the whole error, sorry!
     
  26. Offline

    racertwist

    04.11 20:28:31 [Server] INFO ... 9 more
    04.11 20:28:31 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:143)
    04.11 20:28:31 [Server] INFO at java.lang.Class.forName(Class.java:264)
    04.11 20:28:31 [Server] INFO at java.lang.Class.forName0(Native Method)
    04.11 20:28:31 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    04.11 20:28:31 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    04.11 20:28:31 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    04.11 20:28:31 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44)
    04.11 20:28:31 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    04.11 20:28:31 [Server] INFO at java.security.AccessController.doPrivileged(Native Method)
    04.11 20:28:31 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    04.11 20:28:31 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    04.11 20:28:31 [Server] INFO Caused by: java.lang.ClassNotFoundException: me.racertwist.Worldgen.World
    04.11 20:28:31 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
    04.11 20:28:31 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:391)
    04.11 20:28:31 [Server] INFO at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
    04.11 20:28:31 [Server] INFO at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
    04.11 20:28:31 [Server] INFO at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:51)
    04.11 20:28:31 [Server] INFO at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:203)
    04.11 20:28:31 [Server] INFO at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:227)
    04.11 20:28:31 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    04.11 20:28:31 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    04.11 20:28:31 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:154)
    04.11 20:28:31 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: me.racertwist.Worldgen.World
    04.11 20:28:31 [Server] SEVERE Could not load 'plugins/WorldGenerator.jar' in folder 'plugins'
    04.11 20:28:31 [Server] INFO Entities enhanced[0] subclassed[1]
    04.11 20:28:31 [Server] INFO SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    04.11 20:28:31 [Server] INFO DataSourcePool [TimeShift] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    here it is
     
  27. Offline

    racertwist

    anyone please
     
  28. Offline

    fireblast709

    post the main class's code from the first line till the 'public class .... extends JavaPlugin' (including that line)
     
  29. Offline

    racertwist

    i didnt understand what you mean in the post can you re-word it for me please?
     
Thread Status:
Not open for further replies.

Share This Page