New To Dev

Discussion in 'Plugin Development' started by hego555, Sep 4, 2011.

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

    hego555

    So I saw a plugin which had one or two parts missing and some parts I didnt like so I looked at code and knew how to fix it, so I did, but my compiler gives mer error's with EVERYTHING related to the Bukkit API
    So where do I get it from?

    This is what is imported
    Code:
    import org.bukkit.ChatColor;
    import org.bukkit.Material;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.plugin.PluginDescriptionFile;
    import org.bukkit.plugin.java.JavaPlugin;
    Thanks
     
  2. Offline

    sddddgjd

    Add the bukkit library...
     
  3. Offline

    hego555

    Where do I get it from?
     
  4. Offline

    sddddgjd

  5. Offline

    hego555

    Thanks!
    But I sadly have a new stupid question :(
    Where do I put the .jar file?
    Sorry for the questions which I bet you guys are annoyed of answering!
     
  6. Offline

    sddddgjd

    Do you have eclipse or netbeans?
     
  7. Offline

    hego555

    I have Eclipse, but I use TextPad
     
  8. Offline

    Pencil

    You will have to use Eclipse if you want to get this working ;D
     
  9. Offline

    hego555

    Okay now what?
    I get errors for import's
    where do I put jar file?
     
  10. Offline

    SanguineShadow

  11. Offline

    hego555

    I added jar file to correct place and the java doc's still errors,

    okay now i got everything set-up but it says
    Access Restriction: The Type Command is not accessible due to restriction on required library!

    Forget this thread can a mod lock it?

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

    MonsieurApple

    No, just let it slowly die a slow, painful death. RIP this thread.
     
    tips48 and SpikeMeister like this.
  13. Offline

    DrBowe

    @MonsieurApple
    No! We can't give up that easily! Fight, damn it! Fight!
    *pulls out defibrillator*
     
  14. Offline

    hego555

    I still dont have my answer, can someone PLEASE PM ME!
     
  15. Offline

    Lolmewn

    Did you make bukkit.jar a referenced library?
    And are there no other libraries other then the main java library?
    Then it should work.
     
  16. Offline

    hego555

    Yes but some stuff just doesn't work and it's error is!
    Access Restriction!
     
Thread Status:
Not open for further replies.

Share This Page