promotional bannermobile promotional banner

Extras

Abandoned
Additional useful and advanced methods for plugin developers

Extras

Github == JavaDocs ==

What is Extras? An open source, modular, lightweight, library which contains a large set of both useful and advanced methods for plugin developers.

To make use of the library you will first need to import it. You can do this in Eclipse by right-clicking on your src folder. Then select General > File System and import the source folder from "YourSavedPath/Extras-Library/Extras/src".

Extras library contains the following packages: couk.Adamki11s.Extras.Colour; couk.Adamki11s.Extras.Cryptography; couk.Adamki11s.Extras.Events; couk.Adamki11s.Extras.Extras; couk.Adamki11s.Extras.Inventory; couk.Adamki11s.Extras.Player; couk.Adamki11s.Extras.Random; couk.Adamki11s.Extras.Regions; couk.Adamki11s.Extras.Scheduler; couk.Adamki11s.Extras.Terrain; couk.Adamki11s.Extras.Trace;

I have added extensive Java Docs to all of the methods so I won't go over what they do in this thread but only how to hook into those classes and access those events. Each class and it's methods extend an abstract class so you can hook into it very easily:

ExtrasColour extrasColour = new ExtrasColour(); ExtrasCryptography extrasCrypt = new ExtrasCryptography(); ExtrasEvents extrasEvents = new ExtrasEvents(); ExtrasInventory extrasInventory = new ExtrasInventory(); ExtrasPlayer extrasPlayer = new ExtrasPlayer(); ExtrasRandom extrasRandom = new ExtrasRandom(); ExtrasRegions extrasRegions = new ExtrasRegions(); ExtrasScheduler extrasScheduler = new ExtrasScheduler(); ExtrasTerrain extrasTerrain = new ExtrasRegions(); ExtrasTrace extrasTrace = new ExtrasTrace();

But before hooking into these methods you should hook into the core first which consists of a constructor with your plugin name which will help identify errors whilst sending player messages if a null parameter is passed. This is done easily like so :

Extras ex = new Extras("YourPluginName");

I'd recommend doing this inside onEnable or before you make an API calls to Extra's.

ChangeLog: Version 1.1 : Added Scheduler library and a few additional methods. Version 1.0 : Initial Release

The Extras Team

profile avatar
  • 5
    Projects
  • 175.2K
    Downloads

More from Forge_User_62729289View all

  • Regios project image

    Regios

    • 166.1K
    • Bukkit Plugins

    Regios

    • 166.1K
    • August 10, 2013
    • Bukkit Plugins
    • +4
  • Sync project image

    Sync

    • 5.5K
    • Bukkit Plugins

    Sync - Providing all your data storage needs and more!

    • 5.5K
    • January 28, 2013
    • Bukkit Plugins
  • QuestX project image

    QuestX

    • 3.5K
    • Bukkit Plugins

    QuestX gives you the power to create your own quests and roaming, interactable NPC's. Highly customisable with morale system.

    • 3.5K
    • January 15, 2013
    • Bukkit Plugins
    • +3
  • Block ID Favs project image

    Block ID Favs

    • 642
    • Bukkit Plugins

    Display Your Favorite Block IDs

    • 642
    • January 15, 2013
    • Bukkit Plugins
    • +2
  • Regios project image

    Regios

    • 166.1K
    • Bukkit Plugins

    Regios

    • 166.1K
    • August 10, 2013
    • Bukkit Plugins
    • +4
  • Sync project image

    Sync

    • 5.5K
    • Bukkit Plugins

    Sync - Providing all your data storage needs and more!

    • 5.5K
    • January 28, 2013
    • Bukkit Plugins
  • QuestX project image

    QuestX

    • 3.5K
    • Bukkit Plugins

    QuestX gives you the power to create your own quests and roaming, interactable NPC's. Highly customisable with morale system.

    • 3.5K
    • January 15, 2013
    • Bukkit Plugins
    • +3
  • Block ID Favs project image

    Block ID Favs

    • 642
    • Bukkit Plugins

    Display Your Favorite Block IDs

    • 642
    • January 15, 2013
    • Bukkit Plugins
    • +2