Bukkit Contrib?

Discussion in 'Plugin Development' started by deltahat, Feb 3, 2011.

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

    deltahat

    I'd like to start a Contrib project for Bukkit to include functionality helpful to plugin developers that doesn't really belong in Bukkit itself.

    Things I'd like to start with:
    1. Improved custom event dispatching and handling
    2. Send command to console - http://forums.bukkit.org/threads/send-commands-to-console.3241/
    3. 3d collision/intersection/measurement math functions - http://forums.bukkit.org/threads/a-little-math.227/
    4. A better plugin base class
    5. Entity spawining - http://forums.bukkit.org/threads/npcspawner-lib-spawn-basic-npcs.3298/
    6. Various community sourced utility functions and work arounds
    What are your thoughts on starting BukkitContrib? What would you like to see in the library?
     
  2. Offline

    Raphfrk

    Some of that stuff could be submitted to the main project's github.

    This should definitely be part of the main project.

    At the moment, custom events are sent to all plugins that have registered for custom events.

    There could be a HashMap, or even an Id number system to allow custom events to be registered to specific plugins.

    For example,

    Integer getServer().getPluginManager().registerCustomEventName(String CustomEventName)

    This would register a custom event name with the plugin manager and return a unique Id number of that event, or null if it is already in use.

    Integer getServer().getPluginManager().getIdNumber(String CustomEventName)

    This would return the id number for the corresponding string or null if it doesn't exist.

    You could then register specific customEvents by using the Id. This would be more efficient than having to do a hash lookup for the custom event name every time it is triggered.

    Interesting, would have saved the need to code the scheduler :).

    There is a hitBlox pull somewhere for some maths type things. These could easily be handled as a separate plugin.

    What issues are you having?

    This should really be part of the main API. The only other way to spawn mobs is to directly reference the methods, so it would break with every minecraft update.[/quote]
     
Thread Status:
Not open for further replies.

Share This Page