Importing Packages

Discussion in 'Spigot Plugin Development' started by DidactCraft, May 23, 2015.

  1. Hello, I'm trying to make a suite/core for a server. And I'm struggling to import a package into my core code and applying it. The package is a scoreboard written by me. And I have no idea how to implement it into my code?

    Can someone please help? Would be greatly appreciated <3
    Thanks in advance
     
  2. Just add the package to your SRC folder..
     
    • Funny Funny x 1
  3. Lol I have done this, but how do I insert all the code into the core.java
     
  4. You use the methods from the classes in the package?
     
  5. I would suggest learning how to work with the IDE you are using before trying to write code with it :)

    More on topic though, what IDE are you using? That'll very much help with solving your issue.
     
  6. What's your package name? Also make sure said plugin is in your project structure.
     
  7. You shouldn't be inserting anything into core.java, you should be inserting it into Core.java
     
  8. Aha I got it now :) Thanks lads