Class TownJoinNationInvite
java.lang.Object
com.palmergames.bukkit.towny.object.inviteobjects.TownJoinNationInvite
- All Implemented Interfaces:
Invite
-
Constructor Summary
ConstructorDescriptionTownJoinNationInvite
(org.bukkit.command.CommandSender directSender, Town receiver, Nation sender) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept()
Runs the accept code for the given invitation.void
decline
(boolean fromSender) Runs the reject code for the given invitation.boolean
@Nullable org.bukkit.command.CommandSender
Gets the sender of the invitationGets the receiver of the invitation.Gets the sender of the invitation.@NotNull String
@Nullable UUID
int
hashCode()
-
Constructor Details
-
TownJoinNationInvite
-
-
Method Details
-
accept
Description copied from interface:Invite
Runs the accept code for the given invitation.- Throws:
TownyException
- Sends errors back up to be processed by the caller.
-
decline
public void decline(boolean fromSender) Description copied from interface:Invite
Runs 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:Invite
Gets the sender of the invitation- Specified by:
getDirectSender
in interfaceInvite
- Returns:
- The
CommandSender
of the invitation, or null if the sender is a player and not online.
-
getSenderName
- Specified by:
getSenderName
in interfaceInvite
- Returns:
- The sender's name, or 'CONSOLE' if the invitation was sent by console.
-
getSenderUUID
- Specified by:
getSenderUUID
in interfaceInvite
- Returns:
- The sender's uuid, or
null
if the invitation was sent by console.
-
getReceiver
Description copied from interface:Invite
Gets the receiver of the invitation.- Specified by:
getReceiver
in interfaceInvite
- Returns:
- The
InviteReceiver
object receiving the invite.
-
getSender
Description copied from interface:Invite
Gets the sender of the invitation.- Specified by:
getSender
in interfaceInvite
- Returns:
- The
InviteSender
object that sent the invite.
-
equals
-
hashCode
public int hashCode()
-