zDonation 1.0.0.2

Allows players to give items to other players

  1. Maxlego08
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Source Code:
    https://github.com/Maxlego08/zDonation
    [​IMG]

    [​IMG]

    Allows players to give items to other players
    Commands
    • /don - See the list of orders (zdonation.use)
    • /don open - Open the donation inventory. (zdonation.open)
    • /don send <player> - Send a donation. (zdonation.send)
    • /don sendall <is online> - Send a donation to online or offline player (zdonation.send.all)
    • /don reload - Reload configuration. (zdonation.reload)
    API:
    JavaDocs: http://docs.groupez.dev/zdonation
    Event:

    • DonationSendEvent
    Get DonationManager:
    Code (Java):

    DonationManager donationManager = getProvider(DonationManager.class);

    protected <T> T getProvider(Class<T> classz) {
        RegisteredServiceProvider<T> provider = getServer().getServicesManager().getRegistration(classz);
        if (provider == null) {
            log.log("Unable to retrieve the provider " + classz.toString(), LogType.WARNING);
            return null;
        }
        return provider.getProvider() != null ? (T) provider.getProvider() : null;
    }
     

    CHINCHIN likes this.

Recent Updates

  1. [1.0.0.2] Add send all
  2. [1.0.0.1] Fix 1.16