How does craftbukkit work ?

Discussion in 'Plugin Development' started by DirtyAxe, Jul 2, 2016.

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

    DirtyAxe

    I am currently writing a craftbukkit plugin , and i had a question about how it work ? I mean i have the main class and the event handler , does it create one scope for each server ? or for each world ? or does it create multiple scopes ? and if it does , how can i store data between scopes , so that every event can access it ?
     
  2. Offline

    Zombie_Striker

    @DirtyAxe
    It's one scope for the entire server.
     
  3. Offline

    ArsenArsen

    Fairly simple, it goes through the jars, gets plugin.yml, stores the data, makes only one instance of the plugin and stores it with the data. And when a plugin gets unloaded looks into that data, unregisters everything, calls onDisable, cancels all tasks, then removes all previously stored data. Have look at the source code as it is the best explanation. On Spigot.
    EDIT: @Zombie_Striker ninjad me xD
     
  4. Offline

    teej107

    magic
     
    Kaelinator, ChipDev and SirGregg like this.
  5. Offline

    SirGregg

    This made my bad day slightly less bad :)
    Thank you xD
     
  6. Offline

    ChipDev

    [​IMG]

    But on a more serious note...
    ITS FREAKING MAGIC ITS SERIOUS!
    Chip, get over it.. you even got a gif.

    Well, I got ninja'd, by a day. Sorry, but seriously,
    @ArsenArsen is right. Other than right now you cant really look at the source.
     
    teej107 likes this.
Thread Status:
Not open for further replies.

Share This Page