TMDevelopmentTinulica & Maiky

Developer API

Developer API

1.0.22+ · package dev.tmdevelopment.flarereferrals.api · add FlareReferrals to softdepend in your plugin.yml.

int invites = FlareReferralsAPI.getInvites(player.getUniqueId());
UUID inviter = FlareReferralsAPI.getInviter(player.getUniqueId());   // null = nobody
boolean waiting = FlareReferralsAPI.isPending(player.getUniqueId()); // waits for the playtime check
List<FlareReferralsAPI.TopEntry> top = FlareReferralsAPI.getTop(10);
EventWhen
ReferralEventa player writes /referrals <inviter> and the checks passed, before the invite is saved. Cancellable: FlareReferrals then sends nothing, tell the player why yourself
ReferralCompleteEventthe invite counts (right away or after the playtime check). getPlayer(), getInviter(), getInviterName(), getInvites()
@EventHandler
public void onInvite(ReferralCompleteEvent e) {
    if (e.getInvites() == 50) Bukkit.broadcastMessage(e.getInviterName() + " invited 50 players!");
}

Everything runs on the main thread. On a network the events are called on the server where the player wrote the command.

Actualizat ultima data pe

Autentificare

Esti nou? Scrie doar emailul: contul se creeaza cand apesi pe link. Nu ai nevoie de parola.

sau

Iti trimitem un link care te autentifica dintr-un click. Merge si pentru conturi noi, si pentru cele existente.

Autentifica-te cu parola
Ai uitat parola?

Continuand, accepti Termeni si conditii si Politica de confidentialitate.

Staff: deschide „Autentifica-te cu parola” si scrie numele de utilizator in loc de email. Dupa parola iti cerem codul 2FA.