https://github.com/maxlego08/zdonation
A plugin that allows you to donate items on your server.
https://github.com/maxlego08/zdonation
Last synced: 3 months ago
JSON representation
A plugin that allows you to donate items on your server.
- Host: GitHub
- URL: https://github.com/maxlego08/zdonation
- Owner: Maxlego08
- License: gpl-3.0
- Created: 2020-12-30T10:18:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-16T13:32:07.000Z (almost 3 years ago)
- Last Synced: 2025-01-01T18:13:08.264Z (5 months ago)
- Language: Java
- Size: 167 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zDonation
Allows players to give items to other players
## API
Java docs: https://docs.groupez.xyz/zdonation/
Get ItemManager:
```java
DonationManager donationManager = getProvider(DonationManager.class);protected T getProvider(Class classz) {
RegisteredServiceProvider 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;
}
```