Interface InviteSender
- All Superinterfaces:
Nameable
- All Known Subinterfaces:
Inviteable
- All Known Implementing Classes:
Government,Nation,Town
Represents a class that can receive invitations.
- Author:
- Articdive
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSentInvite(Invite invite) Removes an outgoing invite.Gets the collection of outgoing invites.voidnewSentInvite(Invite invite) Adds an outgoing invite.Methods inherited from interface com.palmergames.bukkit.towny.object.Nameable
getFormattedName, getName
-
Method Details
-
getSentInvites
Collection<Invite> getSentInvites()Gets the collection of outgoing invites.- Returns:
- The outgoing invites.
-
newSentInvite
Adds an outgoing invite.- Parameters:
invite- The outgoing invite to add.- Throws:
TooManyInvitesException- When the outgoing invite limit has been reached.
-
deleteSentInvite
Removes an outgoing invite.- Parameters:
invite- The invite to remove from the outgoing collection.
-