Class Messages
These messages use placeholders (e.g. {0}, {1}) that are replaced at runtime and support Minecraft color codes via dollar signs ($). The messages are loaded from a YAML configuration file, which can be edited with a YAML editor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionPrefix used for admin claims.Keyword for a claim.Prefix used for claims.Keyword indicating that a feature is disabled.Keyword indicating that a feature is enabled.Keyword for a subclaim.Keyword representing the server.Error message when a claim already has a buyer.Error message when the auction payment to the owner fails.Error message when the auction payment from the owner fails.Error message when the command only applies to auctioned claims.Error message when automatic renew is disabled.Error message when a command is restricted to the buyer only.Error message when a leased claim cannot be cancelled.Error message when a rented claim cannot be cancelled.Error message when an auctioned claim cannot be cancelled.Error message when the player is already the highest bidder.Error message when the claim is already leased.Error message when the player is already the owner of the claim.Error message when the claim is already rented.Error message when the claim does not exist.Error message when an auctioned claim does not exist.Error message when access is not permitted due to an ongoing transaction.Error message when building is not permitted on a claim in transaction.Error message when editing is not permitted due to an ongoing transaction.Error message when container access is not allowed due to a transaction.Error message when management actions are blocked by a transaction.Error message when the claim is involved in a transaction and cannot be modified.Error message when the player does not have permission to auction a claim.Error message when the player does not have permission to buy a claim.Error message when the player does not have enough claim blocks.Error message when the player does not have permission to view claim information.Error message when the player does not have permission to lease a claim.Error message when the player does not have permission to rent a claim.Error message when the claim is not auctioned by its owner.Error message when the claim is not leased by its owner.Error message when the claim is not rented by its owner.Error message when the claim is not sold by its owner.Error message for invalid command usage.Error message instructing the player to contact an admin.Error message when another player cannot be reimbursed.Error message when the player cannot be reimbursed.Error message when an exit offer already exists.Error message when the player tries to accept their own exit offer.Error message when someone other than the offer creator tries to cancel the exit offer.Error message when the player tries to refuse their own exit offer.Error message when there is no buyer engaged in the transaction.Error message when there is no exit offer for the claim.Error message for an invalid duration.Error message for an invalid number.Error message when an invalid option is provided.Error message for a negative bid step.Error message for a negative number.Error message for a negative price.Error message when money cannot be deposited to another player.Error message when money cannot be deposited to the player.Error message when another player doesn't have enough money.Error message when the player doesn't have enough money.Error message when the price is not an integer.Error message when there is no ongoing transaction for a claim.Error message when the player is not part of the current transaction.Error message when a claim is neither available for rent nor lease.Error message when money cannot be withdrawn from another player.Error message when money cannot be withdrawn from the player.Error message when a player is not standing within a claim.Error message when the command is only for players.Error message when the command only applies to rented claims.Error message when auctioning is disabled.Error message when leasing is disabled.Error message when the player lacks permission to auction an admin claim.Error message when the player lacks permission to lease an admin claim.Error message when the player lacks permission to rent an admin claim.Error message when the player lacks permission to sell an admin claim.Error message when the player lacks permission to auction a claim.Error message when the player lacks permission to lease a claim.Error message when the player lacks permission to rent a claim.Error message when the player lacks permission to sell a claim.Error message when the sign can only be destroyed by an admin.Error message when the sign is destroyed by someone who is not the author.Error message when the sign is not inside a claim.Error message when the player attempts to modify a claim they do not own.Error message when no transaction is associated with the sign.Error message when the claim already has an ongoing transaction.Error message when the parent claim already has an ongoing transaction.Error message when renting is disabled.Error message when selling is disabled.Error message when a subclaim has an ongoing transaction.Error message when a subclaim is involved in a transaction.Error message for unexpected errors.Error message when a numeric value is not greater than zero.Message for when a buyer starts leasing a claim.Message for when a buyer rents a claim.Message for when a buyer successfully purchases a claim.Message confirming successful creation of an auction.Broadcast message when an auction is created.Message confirming successful creation of a lease.Broadcast message when a lease is created.Message confirming successful creation of a rent offer.Broadcast message when a rent offer is created.Message confirming successful creation of a sale.Broadcast message when a sale is created.Auction information message displaying the bid step.Auction information message when the auction is cancelled.Auction information message when the auction has ended.Header for the auction information display.Auction information message showing the highest bidder.Auction information message when no bidder is present.One-line auction information message.Auction information message displaying the remaining time.General lease information message when a buyer is present.General lease information message when no buyer is present.General rent information message when a buyer is present.General rent information message when no buyer is present.Header for the lease information display.One-line lease information display.Lease payment information message for the buyer.Lease payment message for the buyer when it is the final payment.Lease payment information message for the owner.Lease payment message for the owner when it is the final payment.Message displaying the main claim's owner.A note regarding subclaim access.Message displaying the current owner of the claim.Message indicating the current automatic renew status for rent.Rent cancellation message.Rent information header.One-line rent information message.Rent payment information message for the buyer.Rent payment cancellation message for the buyer.Rent payment information message for the owner.Rent payment cancellation message for the owner.General sale information message.Header for the sale information display.One-line sale information message.Broadcast message when a claim lease has started.Broadcast message when a claim is rented.Broadcast message when a claim is bought by a new owner.Message instructing the player on how to accept an exit offer.Broadcast message when another player accepts the exit offer.Message confirming that the exit offer was accepted by the player.Message instructing the player on how to cancel their exit offer.Broadcast message when another player cancels the exit offer.Message confirming that the exit offer has been cancelled by the player.Broadcast message when another player creates an exit offer.Message confirming that the exit offer was created by the player.Message indicating the status of an exit offer created by the player.Message indicating the status of an exit offer made to the player.Message indicating that no exit offer is available for the claim.Message instructing the player on how to reject an exit offer.Broadcast message when another player rejects the exit offer.Message indicating that the exit offer has been rejected.Message indicating how to view the next page of transactions.Header for the transaction list.Message displayed when no transaction is found.Message displayed when no transaction is found at the player's location.Message indicating that the page number must be a positive option.Message displayed when the requested page does not exist.Message indicating the current status of automatic rent renewal.Message indicating that automatic rent renewal is now active or inactive.Sign message indicating that the auction has ended.Sign message displaying the highest bidder in an auction.Sign message displayed when no bidder is present.Sign message showing the remaining time in an auction.Sign message indicating that the auction was won.org.bukkit.plugin.PluginDescriptionFile
The plugin description file. -
Constructor Summary
ConstructorsConstructorDescriptionMessages()
Constructs a new Messages instance and initializes the plugin description file. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getMessage
(String msgTemplate, boolean withPrefix, String... args) Retrieves a formatted message.static String
getMessage
(String msgTemplate, String... args) Retrieves a formatted message with placeholders replaced.void
Loads the language configuration file.static void
sendMessage
(org.bukkit.command.CommandSender player, String message) Sends a pre-formatted message to a CommandSender.static void
sendMessage
(org.bukkit.command.CommandSender player, String message, long delayInTicks) Schedules a message to be sent to a CommandSender after a delay.static void
sendMessage
(org.bukkit.command.CommandSender player, String msgTemplate, long delayInTicks, String... args) Sends a formatted message to a CommandSender after a delay.static void
sendMessage
(org.bukkit.command.CommandSender player, String message, Boolean fixColors) Sends a message to a CommandSender with an option to process color codes.static void
sendMessage
(org.bukkit.command.CommandSender player, String msgTemplate, String... args) Sends a formatted message to a CommandSender.Methods inherited from class me.EtienneDx.AnnotationConfig.AnnotationConfig
loadConfig, saveConfig, saveConfig
-
Field Details
-
pdf
public org.bukkit.plugin.PluginDescriptionFile pdfThe plugin description file. -
keywordEnabled
Keyword indicating that a feature is enabled. -
keywordDisabled
Keyword indicating that a feature is disabled. -
keywordClaim
Keyword for a claim. -
keywordSubclaim
Keyword for a subclaim. -
keywordAdminClaimPrefix
Prefix used for admin claims. -
keywordClaimPrefix
Prefix used for claims. -
keywordTheServer
Keyword representing the server. -
msgNoTransactionFound
Message displayed when no transaction is found. -
msgNoTransactionFoundHere
Message displayed when no transaction is found at the player's location. -
msgPageMustBePositive
Message indicating that the page number must be a positive option. -
msgPageNotExists
Message displayed when the requested page does not exist. -
msgRenewRentNow
Message indicating that automatic rent renewal is now active or inactive.Placeholders: {0} - enabled/disabled; {1} - type of claim.
-
msgRenewRentCurrently
Message indicating the current status of automatic rent renewal.Placeholders: {0} - enabled/disabled; {1} - type of claim.
-
msgErrorOutOfClaim
Error message when a player is not standing within a claim. -
msgErrorPlayerOnly
Error message when the command is only for players. -
msgErrorNoOngoingTransaction
Error message when there is no ongoing transaction for a claim. -
msgErrorNotRentNorLease
Error message when a claim is neither available for rent nor lease. -
msgErrorAlreadyBought
Error message when a claim already has a buyer. -
msgErrorNotPartOfTransaction
Error message when the player is not part of the current transaction. -
msgErrorRentOnly
Error message when the command only applies to rented claims. -
msgErrorAuctionOnly
Error message when the command only applies to auctioned claims. -
msgErrorValueGreaterThanZero
Error message when a numeric value is not greater than zero. -
msgErrorInvalidOption
Error message when an invalid option is provided. -
msgErrorClaimInTransactionCantOwner
Error message when the claim is involved in a transaction and cannot be modified. -
msgErrorClaimInTransactionCantEdit
Error message when editing is not permitted due to an ongoing transaction. -
msgErrorClaimInTransactionCantAccess
Error message when access is not permitted due to an ongoing transaction. -
msgErrorClaimInTransactionCantBuild
Error message when building is not permitted on a claim in transaction. -
msgErrorClaimInTransactionCantInventory
Error message when container access is not allowed due to a transaction. -
msgErrorClaimInTransactionCantManage
Error message when management actions are blocked by a transaction. -
msgErrorSubclaimInTransaction
Error message when a subclaim is involved in a transaction. -
msgErrorCommandUsage
Error message for invalid command usage.Placeholder: {0} - correct command usage.
-
msgErrorBuyerOnly
Error message when a command is restricted to the buyer only. -
msgErrorUnexpected
Error message for unexpected errors. -
msgErrorInvalidNumber
Error message for an invalid number.Placeholder: {0} - the invalid number.
-
msgErrorNegativeNumber
Error message for a negative number.Placeholder: {0} - the negative number.
-
msgErrorNegativePrice
Error message for a negative price.Placeholder: {0} - the price.
-
msgErrorNegativeBidStep
Error message for a negative bid step.Placeholder: {0} - the bid step.
-
msgErrorNonIntegerPrice
Error message when the price is not an integer.Placeholder: {0} - the price.
-
msgErrorInvalidDuration
Error message for an invalid duration.Placeholders: {0} - the invalid duration, {1}, {2}, {3} - examples of valid formats.
-
msgErrorNoMoneySelf
Error message when the player doesn't have enough money. -
msgErrorNoMoneyOther
Error message when another player doesn't have enough money.Placeholder: {0} - other player's name.
-
msgErrorNoWithdrawSelf
Error message when money cannot be withdrawn from the player. -
msgErrorNoWithdrawOther
Error message when money cannot be withdrawn from another player.Placeholder: {0} - other player's name.
-
msgErrorNoDepositSelf
Error message when money cannot be deposited to the player.Placeholder: {0} - the amount.
-
msgErrorNoDepositOther
Error message when money cannot be deposited to another player.Placeholder: {0} - other player's name.
-
msgErrorCantCancelAlreadyLeased
Error message when a leased claim cannot be cancelled.Placeholder: {0} - claim type.
-
msgErrorCantCancelAlreadyRented
Error message when a rented claim cannot be cancelled.Placeholder: {0} - claim type.
-
msgErrorCantCancelAuction
Error message when an auctioned claim cannot be cancelled. -
msgErrorCouldntReimburseSelf
Error message when the player cannot be reimbursed.Placeholder: {0} - formatted price.
-
msgErrorCouldntReimburseOther
Error message when another player cannot be reimbursed.Placeholder: {0} - formatted price.
-
msgErrorContactAdmin
Error message instructing the player to contact an admin. -
msgErrorAutoRenewDisabled
Error message when automatic renew is disabled. -
msgErrorExitOfferAlreadyExists
Error message when an exit offer already exists. -
msgErrorExitOfferNoBuyer
Error message when there is no buyer engaged in the transaction. -
msgErrorExitOfferNone
Error message when there is no exit offer for the claim. -
msgErrorExitOfferCantAcceptSelf
Error message when the player tries to accept their own exit offer. -
msgErrorExitOfferCantRefuseSelf
Error message when the player tries to refuse their own exit offer. -
msgErrorExitOfferCantCancelOther
Error message when someone other than the offer creator tries to cancel the exit offer. -
msgErrorSignNotInClaim
Error message when the sign is not inside a claim. -
msgErrorSignOngoingTransaction
Error message when the claim already has an ongoing transaction. -
msgErrorSignParentOngoingTransaction
Error message when the parent claim already has an ongoing transaction. -
msgErrorSignSubclaimOngoingTransaction
Error message when a subclaim has an ongoing transaction. -
msgErrorSignSellingDisabled
Error message when selling is disabled. -
msgErrorSignLeasingDisabled
Error message when leasing is disabled. -
msgErrorSignRentingDisabled
Error message when renting is disabled. -
msgErrorSignAuctionDisabled
Error message when auctioning is disabled. -
msgErrorSignNoSellPermission
Error message when the player lacks permission to sell a claim.Placeholder: {0} - claim type.
-
msgErrorSignNoLeasePermission
Error message when the player lacks permission to lease a claim.Placeholder: {0} - claim type.
-
msgErrorSignNoRentPermission
Error message when the player lacks permission to rent a claim.Placeholder: {0} - claim type.
-
msgErrorSignNoAuctionPermission
Error message when the player lacks permission to auction a claim.Placeholder: {0} - claim type.
-
msgErrorSignNoAdminSellPermission
Error message when the player lacks permission to sell an admin claim.Placeholder: {0} - claim type.
-
msgErrorSignNoAdminLeasePermission
Error message when the player lacks permission to lease an admin claim.Placeholder: {0} - claim type.
-
msgErrorSignNoAdminRentPermission
Error message when the player lacks permission to rent an admin claim.Placeholder: {0} - claim type.
-
msgErrorSignNoAdminAuctionPermission
Error message when the player lacks permission to auction an admin claim.Placeholder: {0} - claim type.
-
msgErrorSignNotOwner
Error message when the player attempts to modify a claim they do not own.Placeholder: {0} - claim type.
-
msgErrorSignNotAuthor
Error message when the sign is destroyed by someone who is not the author. -
msgErrorSignNotAdmin
Error message when the sign can only be destroyed by an admin. -
msgErrorSignNoTransaction
Error message when no transaction is associated with the sign. -
msgErrorClaimDoesNotExist
Error message when the claim does not exist. -
msgErrorClaimDoesNotExistAuction
Error message when an auctioned claim does not exist. -
msgErrorClaimAlreadyOwner
Error message when the player is already the owner of the claim.Placeholder: {0} - claim type.
-
msgErrorClaimNotSoldByOwner
Error message when the claim is not sold by its owner.Placeholder: {0} - claim type.
-
msgErrorClaimNotLeasedByOwner
Error message when the claim is not leased by its owner.Placeholder: {0} - claim type.
-
msgErrorClaimNotRentedByOwner
Error message when the claim is not rented by its owner.Placeholder: {0} - claim type.
-
msgErrorClaimNotAuctionedByOwner
Error message when the claim is not auctioned by its owner.Placeholder: {0} - claim type.
-
msgErrorClaimNoBuyPermission
Error message when the player does not have permission to buy a claim.Placeholder: {0} - claim type.
-
msgErrorClaimNoLeasePermission
Error message when the player does not have permission to lease a claim.Placeholder: {0} - claim type.
-
msgErrorClaimNoRentPermission
Error message when the player does not have permission to rent a claim.Placeholder: {0} - claim type.
-
msgErrorClaimNoAuctionPermission
Error message when the player does not have permission to auction a claim.Placeholder: {0} - claim type.
-
msgErrorClaimAlreadyLeased
Error message when the claim is already leased.Placeholder: {0} - claim type.
-
msgErrorClaimAlreadyRented
Error message when the claim is already rented.Placeholder: {0} - claim type.
-
msgErrorClaimAlreadyHighestBidder
Error message when the player is already the highest bidder.Placeholder: {0} - claim type.
-
msgErrorClaimNoInfoPermission
Error message when the player does not have permission to view claim information. -
msgErrorClaimNoClaimBlocks
Error message when the player does not have enough claim blocks.Placeholders: {0} - required area, {1} - remaining claim blocks, {2} - missing claim blocks.
-
msgErrorAuctionCouldntPayOwner
Error message when the auction payment to the owner fails. -
msgErrorAuctionCouldntReceiveOwner
Error message when the auction payment from the owner fails. -
msgInfoExitOfferNone
Message indicating that no exit offer is available for the claim. -
msgInfoExitOfferMadeByStatus
Message indicating the status of an exit offer created by the player.Placeholder: {0} - formatted price.
-
msgInfoExitOfferMadeToStatus
Message indicating the status of an exit offer made to the player.Placeholders: {0} - player who made the offer; {1} - formatted price.
-
msgInfoExitOfferCancel
Message instructing the player on how to cancel their exit offer.Placeholder: {0} - cancel command.
-
msgInfoExitOfferAccept
Message instructing the player on how to accept an exit offer.Placeholder: {0} - accept command.
-
msgInfoExitOfferReject
Message instructing the player on how to reject an exit offer.Placeholder: {0} - reject command.
-
msgInfoExitOfferCreatedBySelf
Message confirming that the exit offer was created by the player.Placeholder: {0} - formatted price.
-
msgInfoExitOfferCreatedByOther
Broadcast message when another player creates an exit offer.Placeholders: {0} - player name; {1} - claim type; {2} - formatted price; {3} - claim location.
-
msgInfoExitOfferAcceptedBySelf
Message confirming that the exit offer was accepted by the player.Placeholders: {0} - claim type; {1} - formatted price.
-
msgInfoExitOfferAcceptedByOther
Broadcast message when another player accepts the exit offer.Placeholders: {0} - player name; {1} - claim type; {2} - formatted price; {3} - claim location.
-
msgInfoExitOfferRejectedBySelf
Message indicating that the exit offer has been rejected. -
msgInfoExitOfferRejectedByOther
Broadcast message when another player rejects the exit offer.Placeholders: {0} - player name; {1} - claim type; {2} - claim location.
-
msgInfoExitOfferCancelledBySelf
Message confirming that the exit offer has been cancelled by the player. -
msgInfoExitOfferCancelledByOther
Broadcast message when another player cancels the exit offer.Placeholders: {0} - player name; {1} - claim type; {2} - claim location.
-
msgInfoClaimOwnerSold
Broadcast message when a claim is bought by a new owner.Placeholders: {0} - buyer name; {1} - claim type; {2} - formatted price; {3} - claim location.
-
msgInfoClaimOwnerLeaseStarted
Broadcast message when a claim lease has started.Placeholders: {0} - buyer name; {1} - claim type; {2} - formatted price; {3} - claim location; {4} - payments left.
-
msgInfoClaimOwnerRented
Broadcast message when a claim is rented.Placeholders: {0} - buyer name; {1} - claim type; {2} - formatted price; {3} - claim location.
-
msgInfoClaimBuyerSold
Message for when a buyer successfully purchases a claim.Placeholders: {0} - claim type; {1} - formatted price.
-
msgInfoClaimBuyerLeaseStarted
Message for when a buyer starts leasing a claim.Placeholders: {0} - claim type; {1} - formatted price; {2} - payments left.
-
msgInfoClaimBuyerRented
Message for when a buyer rents a claim.Placeholders: {0} - claim type; {1} - formatted price.
-
msgInfoClaimInfoLeaseHeader
Header for the lease information display. -
msgInfoClaimInfoGeneralLeaseNoBuyer
General lease information message when no buyer is present.Placeholders: {0} - claim type; {1} - payments left; {2} - formatted price; {3} - frequency.
-
msgInfoClaimInfoGeneralLeaseBuyer
General lease information message when a buyer is present.Placeholders: {0} - claim type; {1} - buyer name; {2} - formatted price; {3} - payments left; {4} - time until next payment; {5} - frequency.
-
msgInfoClaimInfoLeaseOneline
One-line lease information display.Placeholders: {0} - claim area; {1} - location; {2} - payments left; {3} - period; {4} - formatted price.
-
msgInfoClaimInfoLeasePaymentBuyer
Lease payment information message for the buyer.Placeholders: {0} - claim type; {1} - location; {2} - formatted price; {3} - payments left.
-
msgInfoClaimInfoLeasePaymentOwner
Lease payment information message for the owner.Placeholders: {0} - buyer name; {1} - claim type; {2} - location; {3} - formatted price; {4} - payments left.
-
msgInfoClaimInfoLeasePaymentBuyerFinal
Lease payment message for the buyer when it is the final payment.Placeholders: {0} - claim type; {1} - location; {2} - formatted price.
-
msgInfoClaimInfoLeasePaymentOwnerFinal
Lease payment message for the owner when it is the final payment.Placeholders: {0} - buyer name; {1} - claim type; {2} - location; {3} - formatted price.
-
msgInfoClaimInfoRentHeader
Rent information header. -
msgInfoClaimInfoGeneralRentNoBuyer
General rent information message when no buyer is present.Placeholders: {0} - claim type; {1} - formatted price; {2} - duration.
-
msgInfoClaimInfoGeneralRentBuyer
General rent information message when a buyer is present.Placeholders: {0} - claim type; {1} - buyer name; {2} - formatted price; {3} - time remaining; {4} - period duration.
-
msgInfoClaimInfoRentAutoRenew
Message indicating the current automatic renew status for rent.Placeholder: {0} - enabled/disabled.
-
msgInfoClaimInfoRentOneline
One-line rent information message.Placeholders: {0} - claim area; {1} - location; {2} - formatted price; {3} - duration.
-
msgInfoClaimInfoRentPaymentBuyer
Rent payment information message for the buyer.Placeholders: {0} - claim type; {1} - location; {2} - formatted price.
-
msgInfoClaimInfoRentPaymentOwner
Rent payment information message for the owner.Placeholders: {0} - buyer name; {1} - claim type; {2} - location; {3} - formatted price.
-
msgInfoClaimInfoRentPaymentBuyerCancelled
Rent payment cancellation message for the buyer.Placeholders: {0} - claim type; {1} - location; {2} - formatted price.
-
msgInfoClaimInfoRentPaymentOwnerCancelled
Rent payment cancellation message for the owner.Placeholders: {0} - buyer name; {1} - claim type; {2} - location; {3} - formatted price.
-
msgInfoClaimInfoRentCancelled
Rent cancellation message.Placeholders: {0} - claim type; {1} - location.
-
msgInfoClaimInfoSellHeader
Header for the sale information display. -
msgInfoClaimInfoSellGeneral
General sale information message.Placeholders: {0} - claim type; {1} - formatted price.
-
msgInfoClaimInfoSellOneline
One-line sale information message.Placeholders: {0} - claim area; {1} - location; {2} - formatted price.
-
msgInfoClaimInfoAuctionHeader
Header for the auction information display. -
msgInfoClaimInfoAuctionNoBidder
Auction information message when no bidder is present.Placeholders: {0} - claim type; {1} - formatted price.
-
msgInfoClaimInfoAuctionHighestBidder
Auction information message showing the highest bidder.Placeholders: {0} - claim type; {1} - bidder name; {2} - formatted price.
-
msgInfoClaimInfoAuctionTimeRemaining
Auction information message displaying the remaining time.Placeholder: {0} - formatted time remaining.
-
msgInfoClaimInfoAuctionBidStep
Auction information message displaying the bid step.Placeholder: {0} - bid step.
-
msgInfoClaimInfoAuctionOneline
One-line auction information message.Placeholders: {0} - claim area; {1} - location; {2} - formatted price; {3} - time remaining; {4} - bid step.
-
msgInfoClaimInfoAuctionEnded
Auction information message when the auction has ended.Placeholder: {0} - claim type.
-
msgInfoClaimInfoAuctionCancelled
Auction information message when the auction is cancelled.Placeholder: {0} - claim type.
-
msgInfoClaimInfoOwner
Message displaying the current owner of the claim.Placeholder: {0} - owner name.
-
msgInfoClaimInfoMainOwner
Message displaying the main claim's owner.Placeholder: {0} - owner name.
-
msgInfoClaimInfoNote
A note regarding subclaim access. -
msgInfoClaimCreatedSell
Message confirming successful creation of a sale.Placeholders: {0} - claim prefix; {1} - claim type; {2} - formatted price.
-
msgInfoClaimCreatedLease
Message confirming successful creation of a lease.Placeholders: {0} - claim prefix; {1} - claim type; {2} - formatted price; {3} - payments count; {4} - frequency.
-
msgInfoClaimCreatedRent
Message confirming successful creation of a rent offer.Placeholders: {0} - claim prefix; {1} - claim type; {2} - formatted price; {3} - duration.
-
msgInfoClaimCreatedAuction
Message confirming successful creation of an auction.Placeholders: {0} - claim prefix; {1} - claim type; {2} - formatted price; {3} - formatted bid step; {4} - time remaining.
-
msgInfoClaimCreatedSellBroadcast
Broadcast message when a sale is created.Placeholders: {0} - player name; {1} - claim prefix; {2} - claim type; {3} - formatted price.
-
msgInfoClaimCreatedLeaseBroadcast
Broadcast message when a lease is created.Placeholders: {0} - player name; {1} - claim prefix; {2} - claim type; {3} - formatted price; {4} - payments count; {5} - frequency.
-
msgInfoClaimCreatedRentBroadcast
Broadcast message when a rent offer is created.Placeholders: {0} - player name; {1} - claim prefix; {2} - claim type; {3} - formatted price; {4} - duration.
-
msgInfoClaimCreatedAuctionBroadcast
Broadcast message when an auction is created.Placeholders: {0} - player name; {1} - claim prefix; {2} - claim type; {3} - formatted price; {4} - formatted bid step; {5} - time remaining.
-
msgListTransactionsHeader
Header for the transaction list.Placeholders: {0} - list type (e.g., RE Offers, Sell Offers, Rent Offers, Lease Offers); {1} - current page number; {2} - total page count.
-
msgListNextPage
Message indicating how to view the next page of transactions.Placeholders: {0} - list type; {1} - next page number.
-
msgSignAuctionHighestBidder
Sign message displaying the highest bidder in an auction.Placeholders: {0} - bidder name; {1} - formatted price.
-
msgSignAuctionNoBider
Sign message displayed when no bidder is present. -
msgSignAuctionRemainingTime
Sign message showing the remaining time in an auction.Placeholder: {0} - formatted time remaining.
-
msgSignAuctionEnded
Sign message indicating that the auction has ended. -
msgSignAuctionWon
Sign message indicating that the auction was won.
-
-
Constructor Details
-
Messages
public Messages()Constructs a new Messages instance and initializes the plugin description file.
-
-
Method Details
-
loadConfig
public void loadConfig()Loads the language configuration file.- Overrides:
loadConfig
in classme.EtienneDx.AnnotationConfig.AnnotationConfig
-
getMessage
-
getMessage
-
sendMessage
-
sendMessage
public static void sendMessage(org.bukkit.command.CommandSender player, String msgTemplate, long delayInTicks, String... args) Sends a formatted message to a CommandSender after a delay.- Parameters:
player
- the recipient.msgTemplate
- the message template.delayInTicks
- delay in ticks.args
- the values for placeholders.
-
sendMessage
Sends a pre-formatted message to a CommandSender.- Parameters:
player
- the recipient.message
- the formatted message.
-
sendMessage
-
sendMessage
public static void sendMessage(org.bukkit.command.CommandSender player, String message, long delayInTicks) Schedules a message to be sent to a CommandSender after a delay.- Parameters:
player
- the recipient.message
- the message.delayInTicks
- delay in ticks.
-