CoreProtect API

Discussion in 'Plugin Development' started by Romalk, Sep 15, 2022.

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

    Romalk

    From documentation:

    import net.coreprotect.CoreProtect;
    import net.coreprotect.CoreProtectAPI;

    Plugin plugin = getServer().getPluginManager().getPlugin("CoreProtect");

    why complains about Plugin?
     
  2. Online

    timtower Administrator Administrator Moderator

    @Romalk hover your mouse over the error.
    It will tell you.
    But probably because it is a JavaPlugin
     
  3. Offline

    Strahan

    You need to import org.bukkit.plugin.Plugin. Examples assume you've taken care of the basics already.

    ...and honestly, not to be a dick, but if this threw you through a loop you are likely going to be in for a world of hurt trying to use the API.
     
  4. Offline

    Romalk

    Where can I download bukkit.jar?
     
    Last edited by a moderator: Sep 16, 2022
  5. Online

    timtower Administrator Administrator Moderator

    You make it using BuildTools
     
  6. Offline

    Romalk

    is there a tutorial for intellij idea?
     
  7. Online

    timtower Administrator Administrator Moderator

    Do you know Java?
    Lets start with that.
     
  8. Offline

    Romalk

    So how do this
     
  9. Online

    timtower Administrator Administrator Moderator

    Please answer my question first:
    Do you know Java?
     
  10. Offline

    Romalk

    a little

    The bottom line is that i need to connect to the global minecraft server and, using the api plugin, get information about the change, let's say in the chest on some coordinate

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 17, 2022
  11. Online

    timtower Administrator Administrator Moderator

    Did you make a plugin before?
     
  12. Offline

    Romalk

    No
     
  13. Online

    timtower Administrator Administrator Moderator

    Then you probably want to start with that first so you get the basics handled.
     
  14. Offline

    Romalk

    so this possible?

     
  15. Online

    timtower Administrator Administrator Moderator

    The plugin itself also does it already though.
     
Thread Status:
Not open for further replies.

Share This Page