Class PlayerJoinTownInvite
java.lang.Object
com.palmergames.bukkit.towny.object.inviteobjects.PlayerJoinTownInvite
- All Implemented Interfaces:
- Invite
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerJoinTownInvite(org.bukkit.command.CommandSender directSender, Resident receiver, Town sender) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaccept()Runs the accept code for the given invitation.voiddecline(boolean fromSender) Runs the reject code for the given invitation.boolean@Nullable org.bukkit.command.CommandSenderGets the sender of the invitationGets the receiver of the invitation.Gets the sender of the invitation.@NotNull String@Nullable UUIDinthashCode()
- 
Constructor Details- 
PlayerJoinTownInvite
 
- 
- 
Method Details- 
acceptDescription copied from interface:InviteRuns the accept code for the given invitation.- Throws:
- TownyException- Sends errors back up to be processed by the caller.
 
- 
declinepublic void decline(boolean fromSender) Description copied from interface:InviteRuns the reject code for the given invitation.- Parameters:
- fromSender- Tells if invite was revoked (true) or declined (false).
 
- 
getDirectSender@Nullable public @Nullable org.bukkit.command.CommandSender getDirectSender()Description copied from interface:InviteGets the sender of the invitation- Specified by:
- getDirectSenderin interface- Invite
- Returns:
- The CommandSenderof the invitation, or null if the sender is a player and not online.
 
- 
getSenderName- Specified by:
- getSenderNamein interface- Invite
- Returns:
- The sender's name, or 'CONSOLE' if the invitation was sent by console.
 
- 
getSenderUUID- Specified by:
- getSenderUUIDin interface- Invite
- Returns:
- The sender's uuid, or nullif the invitation was sent by console.
 
- 
getReceiverDescription copied from interface:InviteGets the receiver of the invitation.- Specified by:
- getReceiverin interface- Invite
- Returns:
- The InviteReceiverobject receiving the invite.
 
- 
getSenderDescription copied from interface:InviteGets the sender of the invitation.- Specified by:
- getSenderin interface- Invite
- Returns:
- The InviteSenderobject that sent the invite.
 
- 
equals
- 
hashCodepublic int hashCode()
 
-