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