[HELP!] I'm having some trouble with my plugin.yml file

Discussion in 'Plugin Development' started by fregaPT, May 7, 2011.

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

    fregaPT I steal plugins as my own

    Hey there guys,
    I did my plugin.yml file correctly (I think so)
    1st - I right-clicked src --> New --> File, and named it plugin.yml
    2nd - I edited it with Notepad++ and I wrote there:
    name: SimpleGive
    main: me.fregaPT.SimpleGive
    version: 1.0

    3rd - I had my plugin ready for export
    4th - I right-clicked my java file (SimpleGive wich included the package, the classes and the plugin.yml) and clicked on export
    5th - I choosed it to compress and become a .jar file and then clicked finish
    This is what I got:

    Screenshot003.jpg
    6th - I went to the folder where I choosed to be the directory of my .jar file and it was there, but when I putted it in my plugins folder and launched the server this was what I got:
    Screenshot005.jpg
    Do you know what's happening ? :S
    This is my first plugin, and I asked some people if the source code (classes) were correct and they said yes.
    I haven't got a chance of talking to them lately :s
    SORRY FOR THE BAD ENGLISH :D
     
  2. Offline

    Deathly

    Right-Click the plugin.yml in Eclipse, and click Refresh :)

    Export it again, and it should run fine.


    @fregaPT
     
  3. Offline

    fregaPT I steal plugins as my own

    Wow!
    Thank you very much!
    I wil try this out right now! :D

    I posted a thank you comment above :D
    So, do you have any plugin idea ?
    Are you developing anything ? : D

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

    Deathly

    Well I am dedicating this whole month to setting up my own server, coding, configuring, testing etc.
    It will be totally intuitive to players, no commands needed at all. No Details though.


    If you need help with anything, contact me :)
     
  5. Offline

    kman2010

    fregaPT would you like to code with me im trying to make an awsome enchantment plugin.
    and i need coders.
    sincerly,
    kman2010.
     
  6. Offline

    Kuuichi

    You can also go to Window>Preferences>General>Workspace and check refresh automatically if you want it to do it by itself.
     
  7. Offline

    fregaPT I steal plugins as my own

    That's actually very cool!
    I'm 12 years old, I am building my own operating system :D No kidding
    I know java, c++, python, apache, wamp
    Several stuff :D
    My free time activities are that and sports :D

    Sure
    What's the objective of the server ?

    **Plugin i mean

    Thanks :D

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

    Deathly

    Well I don't have enough time to do long-term projects like a small OS :)

    But yeah.. hope that my server will be cool :D

    If you want to help me with anything later, tell me and I will pm you when I need you :D
     
  9. Offline

    kman2010

    ok here i go.
    you start off with a diamond block and you place it on the ground then you take a gold item and rightclick the block and you get mistical powers in that item here are some examples.
    (ex.gold chestplate = [this enchantment is temporary but very strong] god mode for 30 sec or less only activates when worn)
    (ex.gold helmet = breath underwater)
    (ex.gold shoes = no fall damage)
    (ex.gold pants = super speed and jump while holding shift)
    (ex.gold pickaxe = instant smelting of any material)
    (ex.gold sword = fire on crosshairs when right clikcing)
    (ex.gold spade = lightning on right click)
    (ex.gold axe = when right clicking it throws 5 arrows at one time)
    (ex.gold hoe = when right clicking acts like bonemael and instantly grows trees/wheat/?sheep fur?)
    that is my idea i hope you like it.
    sincerly,
    kman2010.
     
  10. Offline

    fregaPT I steal plugins as my own

    That's a huge project , i guess i could be in.
    Have you started anything?
    Who is into this project ?

    If you need help to, just pm me also ! :D
    Cya,
    fregaPT

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

    kman2010

    nothing yet and nobody but you and me all i have made was a very simple plugin i was just going to get the team together and direct what needs to be done but if you dont want to help you dont have to
     
  12. Offline

    fregaPT I steal plugins as my own

    I wanna help :D
    It's kinda off a complex plugin
    But ok!
    When do you want to start making this plugin ?
    it's gonna take months if its just you and me !
    Talk to people and ask them!
     
  13. Offline

    kman2010

    you ask around to and soon as soon as we get some more people you can start it if you want.
     
  14. Offline

    fregaPT I steal plugins as my own

    Sure, but I'll wait a bit for some guys.
    I'm just gonna end my plugin wich I'm developing!

    **finish I mean

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

    captainawesome7

    Lol I have a plugin named SimpleGive :)

    And btw, you should right click on the Jar file, not on the src folder. You need to register your commands in plugin.yml also.

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

    fregaPT I steal plugins as my own

    Mine doesn't use commands :D
    Some friends of mine wanted a plugin with the give command, but like this:
    Instead of /give <name> <id>; /give <name> <nameof the object>
    Lets see: /give fregaPT woodenplanks 64
    Did you get it?
    :D
    What's your like ?
     
  17. Offline

    captainawesome7

    Confused? What do you mean it doesn't use commands?
    Mine uses (<necessary> [optional])
    /give <playername> <itemID/itemName> [amount] [durability/damage]
    And the user can define their own item names in a config file.
    I don't really understand what you are trying to say though...
     
  18. Offline

    ashour

    i tried this and its still comeing no plugin.yml in jar file.
     
  19. Offline

    fregaPT I steal plugins as my own

    Oh my gosh ..
    Mine is just like yours ... :O
    Any Idea for a new plugin?
    Since you already got one exactly like mine :c

    Then, I don't know :C

    I would like doing that

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

    captainawesome7

    @ashour Alright, step by step.
    1. Right click on your project folder.
    2. Mouse over "new" and click "file"
    3. Name it "plugin.yml", it HAS to be lower case
    4. Next, double click on the plugin.yml in the package explorer.
    5. Put the appropriate things in the file
    6. Save it
    7. Exit text edit, or if you are on a PC, notepad or wordpad or whatever
    8. Go back into eclipse. Right click on plugin.yml in the package explorer and click refresh
    9. Then right click on your project folder and click export.
    10. Click Jar file
    11. Make sure that in the top right, all of the files are checked. This should include plugin.yml
    12. Export it
    13. Test it. If it says plugin.yml not found, you did something wrong. You can open the .jar with an unarchiver and see if plugin.yml is even in there.
     
  21. Offline

    Sammy

    Para quem está a fazer um sistema operativo uma dúvida dessas é estranhamente simples loool :rolleyes:
    (For a person doing an Operative system that question is quite strange and simple) ihihi
     
  22. Offline

    ashour

    i did all these steps and it works :) the plugin.yml error is gone :) and now theres a new error
    09:31:16 [SEVERE] Could not load 'plugins\SquidLimiter.jar' in folder 'plugins':

    java.lang.ClassNotFoundException: com.ashour.bukkit.SquidLimiter
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:134)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:160)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:108)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
    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)
    which i belive i know whats wrong so im going back to editing :)
     
  23. Offline

    captainawesome7

    @ashour Well I have no idea what that means, but at least the plugin.yml error is gone :)
     
  24. Offline

    ashour

    yes thank you thank you :)
     
  25. Offline

    Acrobot

    @ashour
    Incorrect "main" in plugin.yml
     
  26. Offline

    ashour

    main: com.ashour.bukkit.Imonster
    is this not correct?
     
  27. Offline

    Acrobot

    @ashour
    Well, so is it Imonster, SquidLimiter or something else? (Case-sensitive!)
     
  28. Offline

    ashour

    they both do not work. im wondering whats the error..... and yea im trying to take a inactive plugin and revive it :)
     
  29. Offline

    fregaPT I steal plugins as my own

    Are you portuguese ?!
    Olaa!
    Isso foi para mim ? :c
     
Thread Status:
Not open for further replies.

Share This Page