Solved Using / Importing Libraries

Discussion in 'Plugin Development' started by FireBreath14, Apr 16, 2013.

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

    FireBreath14

    I am fairly new to Java and I've been working on some plugins lately. Recently I've been wanting to make plugins that use WorldEdit and/or Essentials Eco. I need help understanding what to import and how to use it.

    Thanks!
     
  2. Offline

    StevenMG

    You can just import the worldedit.jar file that you put in your plugins folder the same way you did the bukkit.jar file.
     
  3. Offline

    FireBreath14

    I know that :p lol. What i dont know is what to import (import blah.blah.blah.worldedit) and how to use it in context
     
  4. Offline

    ZeusAllMighty11

    FireBreath14

    If you use Eclipse, and you have some knowledge of the WorldEdit/WorldGuard API(s), then you should be able to hover over the defined objects and just import them as the com.sq89.worldedit.etc
     
  5. Offline

    FireBreath14


    Okay i think i need to clarify. I am perfectly capable of importing something. Its no problem typing "import some.package.i.need". What I want to know is how to implement that in the code. If the import is, for example, ItemStack, I want to know how to use it like this:

    Code:
    ItemStack stack = new ItemStack(Material.BONE);
    See? I'm using the import now. So how do I use WorldEdit's imports?
     
  6. Offline

    Ivan

Thread Status:
Not open for further replies.

Share This Page