Class Config
java.lang.Object
me.EtienneDx.AnnotationConfig.AnnotationConfig
me.EtienneDx.RealEstate.Config
public class Config
extends me.EtienneDx.AnnotationConfig.AnnotationConfig
Represents the configuration settings for the RealEstate plugin.
This class uses the AnnotationConfig system to load and save configurable options such as keywords for signs, rules for transactions, default prices, durations, messaging settings, and database settings.
-
Field Summary
FieldsModifier and TypeFieldDescriptionA list of possible sign headers used to indicate a claim is for auction.The default duration of an auction period.boolean
Whether a message should be broadcast when a claim is put up for sale, rent, or lease.boolean
Whether an auctioneer can cancel their auction after receiving offers.A list of possible sign headers used for renting container access only.The text displayed on the third line of a sign when renting container access only.The currency symbol to use if UseCurrencySymbol is enabled.boolean
Whether lease signs should be destroyed once the claim is leased.boolean
Whether rent signs should be destroyed once the claim is rented.boolean
Whether an auctioneer can outbid themselves.boolean
Whether auctioning claims is enabled.boolean
Whether players renting claims can enable automatic renew.boolean
Whether leasing claims is enabled.boolean
Whether renting claims is enabled.boolean
Whether selling claims is enabled.A list of possible sign headers used to indicate a claim is for lease.int
The default number of lease payments required before the buyer gains ownership.The default duration of a lease period.boolean
Whether offline owners/buyers should receive mail notifications.boolean
Whether the buyer should be messaged when a claim is rented, leased, or bought.boolean
Whether the owner should be messaged when a claim is rented, leased, or bought.int
The number of offers to display per page in the '/re list' command.double
The default auction bid step when auctioning a claim.double
The default price per block when auctioning a claim.double
The default price per block when leasing a claim.double
The default price per block when renting a claim.double
The default price per block when selling a claim.A list of possible sign headers used to indicate a claim is for rent.The default duration of a rent period.The text displayed on signs for properties to auction.The text displayed on signs for properties to lease.The text displayed on the first line of a sign once a claim is rented.The text displayed on signs for properties to rent.The text displayed on signs for properties to sell.A list of possible sign headers used to indicate a claim is for sale.The header displayed on the top of the signs.boolean
Whether claim blocks are transferred to the new owner on purchase.boolean
Whether to display prices with a currency symbol on signs.boolean
Whether decimal currency values are allowed.The prefix displayed before any chat message.final String
The file path for the configuration file.The type of database to use: MySQL, YML, or SQLite.The language file to be used (found in the languages directory).final String
The file path for the log file.boolean
Whether the MySQL connection should automatically reconnect.The MySQL database name.The MySQL database host.The MySQL database password.int
The MySQL database port.The MySQL table prefix.The MySQL database username.boolean
Whether to use SSL for the MySQL connection.org.bukkit.plugin.PluginDescriptionFile
The plugin description file.The SQLite database name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSplits a string into a list using semicolon as the delimiter.Converts a list of strings into a single string with each element separated by a semicolon.void
Loads the configuration from the file specified byconfigFilePath
.Methods inherited from class me.EtienneDx.AnnotationConfig.AnnotationConfig
loadConfig, saveConfig, saveConfig
-
Field Details
-
pdf
public org.bukkit.plugin.PluginDescriptionFile pdfThe plugin description file. -
configFilePath
The file path for the configuration file. -
logFilePath
The file path for the log file. -
chatPrefix
The prefix displayed before any chat message. -
cfgSignsHeader
The header displayed on the top of the signs. -
cfgSellKeywords
-
cfgRentKeywords
-
cfgContainerRentKeywords
-
cfgLeaseKeywords
-
cfgAuctionKeywords
-
cfgReplaceSell
The text displayed on signs for properties to sell. -
cfgReplaceRent
The text displayed on signs for properties to rent. -
cfgReplaceLease
The text displayed on signs for properties to lease. -
cfgReplaceAuction
The text displayed on signs for properties to auction. -
cfgReplaceOngoingRent
The text displayed on the first line of a sign once a claim is rented. -
cfgContainerRentLine
The text displayed on the third line of a sign when renting container access only. -
cfgEnableSell
public boolean cfgEnableSellWhether selling claims is enabled. -
cfgEnableRent
public boolean cfgEnableRentWhether renting claims is enabled. -
cfgEnableLease
public boolean cfgEnableLeaseWhether leasing claims is enabled. -
cfgEnableAuction
public boolean cfgEnableAuctionWhether auctioning claims is enabled. -
cfgCancelAuction
public boolean cfgCancelAuctionWhether an auctioneer can cancel their auction after receiving offers. -
cfgDisableOutbidSelf
public boolean cfgDisableOutbidSelfWhether an auctioneer can outbid themselves. -
cfgEnableAutoRenew
public boolean cfgEnableAutoRenewWhether players renting claims can enable automatic renew. -
cfgDestroyRentSigns
public boolean cfgDestroyRentSignsWhether rent signs should be destroyed once the claim is rented. -
cfgDestroyLeaseSigns
public boolean cfgDestroyLeaseSignsWhether lease signs should be destroyed once the claim is leased. -
cfgTransferClaimBlocks
public boolean cfgTransferClaimBlocksWhether claim blocks are transferred to the new owner on purchase. -
cfgUseCurrencySymbol
public boolean cfgUseCurrencySymbolWhether to display prices with a currency symbol on signs. -
cfgCurrencySymbol
The currency symbol to use if UseCurrencySymbol is enabled. -
cfgUseDecimalCurrency
public boolean cfgUseDecimalCurrencyWhether decimal currency values are allowed. -
cfgMessageOwner
public boolean cfgMessageOwnerWhether the owner should be messaged when a claim is rented, leased, or bought. -
cfgMessageBuyer
public boolean cfgMessageBuyerWhether the buyer should be messaged when a claim is rented, leased, or bought. -
cfgBroadcastSell
public boolean cfgBroadcastSellWhether a message should be broadcast when a claim is put up for sale, rent, or lease. -
cfgMailOffline
public boolean cfgMailOfflineWhether offline owners/buyers should receive mail notifications. -
cfgPriceSellPerBlock
public double cfgPriceSellPerBlockThe default price per block when selling a claim. -
cfgPriceRentPerBlock
public double cfgPriceRentPerBlockThe default price per block when renting a claim. -
cfgPriceLeasePerBlock
public double cfgPriceLeasePerBlockThe default price per block when leasing a claim. -
cfgPriceAuctionPerBlock
public double cfgPriceAuctionPerBlockThe default price per block when auctioning a claim. -
cfgPriceAuctionBidStep
public double cfgPriceAuctionBidStepThe default auction bid step when auctioning a claim. -
cfgRentTime
The default duration of a rent period. -
cfgLeaseTime
The default duration of a lease period. -
cfgAuctionTime
The default duration of an auction period. -
cfgLeasePayments
public int cfgLeasePaymentsThe default number of lease payments required before the buyer gains ownership. -
cfgPageSize
public int cfgPageSizeThe number of offers to display per page in the '/re list' command. -
languageFile
The language file to be used (found in the languages directory). -
databaseType
The type of database to use: MySQL, YML, or SQLite. -
sqliteDatabase
The SQLite database name. -
mysqlHost
The MySQL database host. -
mysqlPort
public int mysqlPortThe MySQL database port. -
mysqlDatabase
The MySQL database name. -
mysqlUsername
The MySQL database username. -
mysqlPassword
The MySQL database password. -
mysqlPrefix
The MySQL table prefix. -
mysqlUseSSL
public boolean mysqlUseSSLWhether to use SSL for the MySQL connection. -
mysqlAutoReconnect
public boolean mysqlAutoReconnectWhether the MySQL connection should automatically reconnect.
-
-
Constructor Details
-
Config
public Config()Constructs a new configuration instance.Initializes the plugin description file from the RealEstate instance.
-
-
Method Details
-
getString
-
getList
-
loadConfig
public void loadConfig()Loads the configuration from the file specified byconfigFilePath
.- Overrides:
loadConfig
in classme.EtienneDx.AnnotationConfig.AnnotationConfig
-