Current Template

Discussion in 'Resources' started by RightLegRed, Jan 17, 2011.

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

    Archelaus

    Imports might be a bit weird. It's up to date as far as I know. I'll be keeping it updated.

    The template is fairly easy to use.
    This was made because the ever changing builds, while the team are good at keeping us updated, they are not superhuman. Also, I hope this will solve the confusion that people get when they try to use a program that builds a folder structure and the files for you.
    Enjoy.

    - EDIT
    Template maker added
     

    Attached Files:

  2. Offline

    Shanne

    Haha im a newb :D!!! I have no idea what this stuff means but im sure its good keep up the good work :D
     
  3. Offline

    MadMichi

    Should be sticky!
    Is worth [​IMG] when you're a n00b. I lost hours to find out it wasn't my fault thousands of errors popped up [​IMG]
     
  4. Offline

    Archelaus

    Thanks for the feedback. I'll be updating soon. I plan to write a tutorial at some point. It'll be included with this.
     
  5. Offline

    Logon

    Could you help me abit ? Im having a problem with my plugin i use all your code (i use netbeans) i put it in a package called com.bukkit.Logon.Whitelist and i put plugin.yml outside it i still get alot of error

    Code:
    2011-jan-19 13:22:13 org.bukkit.plugin.SimplePluginManager loadPlugins
    ALLVARLIG: Could not load plugins\Whitelist.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:82)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:115)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:80)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:37)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.ClassNotFoundException: com.bukkit.Logon.Whitelist
            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:31)
            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:76)
            ... 8 more
    
    Thanks
     
  6. Offline

    Archelaus

    Post your yml
     
  7. Offline

    Gonzopolis

    I can't believe that I tried for hours to make my plugin working and am now seeing the solution in your template...
    Most likely I'm not the only one who made this mistake in the plugin.yml:

    name: <PluginName>
    main: com.bukkit.<Your Name>.<PluginName>.<PluginName>
    version: <versionnumber>

    The second mention of the plugin name is essential. Doesn't make much sense to me at the moment but it works now.
    Thanks!
     
  8. Offline

    darknesschaos

    the yml is dependent on the file structure.

    com.bukkit.<username>.<filefoldername>.<javafilename> is probably a more appropriate way of putting it.
     
  9. Offline

    Archelaus

    That would be like making two different String variables for the same string. It's also stops people from naming it incorrectly.
     
  10. Offline

    darknesschaos

    it was a way to let people understand why they are having issues with the yml. "Incorrectly" is purely opinion as it works. (at least for me)
     
  11. Offline

    Archelaus

    If I were to tell you I had a bucket and liquid holder, what would you think I had? Because most people would think a bucket AND something else that holds liquid (e.g. cup)

    Calling something by another name, when it is the same thing, confuses people into thinking you have 2 different things.

    Bat file template maker and folder structure constructor. Just do what it asks and it'll construct everything for you.

    Added to the first post.

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

    SeeD419

    Is this still current and useful? Just wondering since it's been a bit...

    (with the all the new updates...)
     
  13. Offline

    Archelaus

    It still works. But I'd recommend using AutoPlate, found in a different thread. It's a bit more useful :p
     
  14. Offline

    Stephen A.

    I used this, tired autoplate, extracted it and everything, it just said cant find C:/Documents a few times and said press any key to continue, and when i did, it stopped.> It did this several times, but this awesome template here works. :)
     
  15. Offline

    compwhizii

    Here's my updated edit, with some formatting fixes.

    Also removed the usage of the com.bukkit namespace :x
     

    Attached Files:

    Last edited by a moderator: May 6, 2016
  16. Offline

    soulbrander

    I'm sorry, I'm retarded, when it asks for versionnumber what are we supposed to input?
     
  17. Offline

    rakiru

    You put in the version number of you plugin. It will most likely be 0.1, but you can put in whatever you want.
     
Thread Status:
Not open for further replies.

Share This Page