Class InviteHandler
java.lang.Object
com.palmergames.bukkit.towny.invites.InviteHandler
- Author:
- - Articdive
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidacceptInvite(Invite invite) static voidstatic voiddeclineInvite(Invite invite, boolean fromSender) static Collection<Invite> getActiveInvitesFor(InviteSender sender, InviteReceiver receiver) static intgetReceivedInvitesMaxAmount(InviteReceiver receiver) static intgetSentAllyRequestsMaxAmount(Nation sender) static intgetSentInvitesMaxAmount(InviteSender sender) static voidinitialize(Towny plugin) static booleaninviteIsActive(Invite invite) static booleaninviteIsActive(InviteSender sender, InviteReceiver receiver) static voidremoveInvite(Invite invite) static void
-
Constructor Details
-
InviteHandler
public InviteHandler()
-
-
Method Details
-
initialize
-
acceptInvite
- Throws:
InvalidObjectExceptionTownyException
-
declineInvite
- Throws:
InvalidObjectException
-
addInvite
-
removeInvite
-
searchForExpiredInvites
public static void searchForExpiredInvites() -
getActiveInvites
-
inviteIsActive
-
inviteIsActive
-
getActiveInvitesFor
-
getSentAllyRequestsMaxAmount
-
getReceivedInvitesMaxAmount
-
getSentInvitesMaxAmount
-