Sueta

zDonation

1.0.0.5

Allows players to give items to other players

·Plugin


Serveur Minecraft Vote is a site that lists the best minecraft servers and rank them according to their number of points, do not wait and add your server!

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://javadocs.groupez.dev/zdonation
Event:

  • DonationSendEvent

Get DonationManager:

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;
}

Similar projects

Plugin →