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 Details Link icon

    • pdf Link icon

      public org.bukkit.plugin.PluginDescriptionFile pdf
      The plugin description file.
    • configFilePath Link icon

      public final String configFilePath
      The file path for the configuration file.
    • logFilePath Link icon

      public final String logFilePath
      The file path for the log file.
    • chatPrefix Link icon

      public String chatPrefix
      The prefix displayed before any chat message.
    • cfgSignsHeader Link icon

      public String cfgSignsHeader
      The header displayed on the top of the signs.
    • cfgSellKeywords Link icon

      public List<String> cfgSellKeywords
      A list of possible sign headers used to indicate a claim is for sale.
    • cfgRentKeywords Link icon

      public List<String> cfgRentKeywords
      A list of possible sign headers used to indicate a claim is for rent.
    • cfgContainerRentKeywords Link icon

      public List<String> cfgContainerRentKeywords
      A list of possible sign headers used for renting container access only.
    • cfgLeaseKeywords Link icon

      public List<String> cfgLeaseKeywords
      A list of possible sign headers used to indicate a claim is for lease.
    • cfgAuctionKeywords Link icon

      public List<String> cfgAuctionKeywords
      A list of possible sign headers used to indicate a claim is for auction.
    • cfgReplaceSell Link icon

      public String cfgReplaceSell
      The text displayed on signs for properties to sell.
    • cfgReplaceRent Link icon

      public String cfgReplaceRent
      The text displayed on signs for properties to rent.
    • cfgReplaceLease Link icon

      public String cfgReplaceLease
      The text displayed on signs for properties to lease.
    • cfgReplaceAuction Link icon

      public String cfgReplaceAuction
      The text displayed on signs for properties to auction.
    • cfgReplaceOngoingRent Link icon

      public String cfgReplaceOngoingRent
      The text displayed on the first line of a sign once a claim is rented.
    • cfgContainerRentLine Link icon

      public String cfgContainerRentLine
      The text displayed on the third line of a sign when renting container access only.
    • cfgEnableSell Link icon

      public boolean cfgEnableSell
      Whether selling claims is enabled.
    • cfgEnableRent Link icon

      public boolean cfgEnableRent
      Whether renting claims is enabled.
    • cfgEnableLease Link icon

      public boolean cfgEnableLease
      Whether leasing claims is enabled.
    • cfgEnableAuction Link icon

      public boolean cfgEnableAuction
      Whether auctioning claims is enabled.
    • cfgCancelAuction Link icon

      public boolean cfgCancelAuction
      Whether an auctioneer can cancel their auction after receiving offers.
    • cfgDisableOutbidSelf Link icon

      public boolean cfgDisableOutbidSelf
      Whether an auctioneer can outbid themselves.
    • cfgEnableAutoRenew Link icon

      public boolean cfgEnableAutoRenew
      Whether players renting claims can enable automatic renew.
    • cfgDestroyRentSigns Link icon

      public boolean cfgDestroyRentSigns
      Whether rent signs should be destroyed once the claim is rented.
    • cfgDestroyLeaseSigns Link icon

      public boolean cfgDestroyLeaseSigns
      Whether lease signs should be destroyed once the claim is leased.
    • cfgTransferClaimBlocks Link icon

      public boolean cfgTransferClaimBlocks
      Whether claim blocks are transferred to the new owner on purchase.
    • cfgUseCurrencySymbol Link icon

      public boolean cfgUseCurrencySymbol
      Whether to display prices with a currency symbol on signs.
    • cfgCurrencySymbol Link icon

      public String cfgCurrencySymbol
      The currency symbol to use if UseCurrencySymbol is enabled.
    • cfgUseDecimalCurrency Link icon

      public boolean cfgUseDecimalCurrency
      Whether decimal currency values are allowed.
    • cfgMessageOwner Link icon

      public boolean cfgMessageOwner
      Whether the owner should be messaged when a claim is rented, leased, or bought.
    • cfgMessageBuyer Link icon

      public boolean cfgMessageBuyer
      Whether the buyer should be messaged when a claim is rented, leased, or bought.
    • cfgBroadcastSell Link icon

      public boolean cfgBroadcastSell
      Whether a message should be broadcast when a claim is put up for sale, rent, or lease.
    • cfgMailOffline Link icon

      public boolean cfgMailOffline
      Whether offline owners/buyers should receive mail notifications.
    • cfgPriceSellPerBlock Link icon

      public double cfgPriceSellPerBlock
      The default price per block when selling a claim.
    • cfgPriceRentPerBlock Link icon

      public double cfgPriceRentPerBlock
      The default price per block when renting a claim.
    • cfgPriceLeasePerBlock Link icon

      public double cfgPriceLeasePerBlock
      The default price per block when leasing a claim.
    • cfgPriceAuctionPerBlock Link icon

      public double cfgPriceAuctionPerBlock
      The default price per block when auctioning a claim.
    • cfgPriceAuctionBidStep Link icon

      public double cfgPriceAuctionBidStep
      The default auction bid step when auctioning a claim.
    • cfgRentTime Link icon

      public String cfgRentTime
      The default duration of a rent period.
    • cfgLeaseTime Link icon

      public String cfgLeaseTime
      The default duration of a lease period.
    • cfgAuctionTime Link icon

      public String cfgAuctionTime
      The default duration of an auction period.
    • cfgLeasePayments Link icon

      public int cfgLeasePayments
      The default number of lease payments required before the buyer gains ownership.
    • cfgPageSize Link icon

      public int cfgPageSize
      The number of offers to display per page in the '/re list' command.
    • languageFile Link icon

      public String languageFile
      The language file to be used (found in the languages directory).
    • databaseType Link icon

      public String databaseType
      The type of database to use: MySQL, YML, or SQLite.
    • sqliteDatabase Link icon

      public String sqliteDatabase
      The SQLite database name.
    • mysqlHost Link icon

      public String mysqlHost
      The MySQL database host.
    • mysqlPort Link icon

      public int mysqlPort
      The MySQL database port.
    • mysqlDatabase Link icon

      public String mysqlDatabase
      The MySQL database name.
    • mysqlUsername Link icon

      public String mysqlUsername
      The MySQL database username.
    • mysqlPassword Link icon

      public String mysqlPassword
      The MySQL database password.
    • mysqlPrefix Link icon

      public String mysqlPrefix
      The MySQL table prefix.
    • mysqlUseSSL Link icon

      public boolean mysqlUseSSL
      Whether to use SSL for the MySQL connection.
    • mysqlAutoReconnect Link icon

      public boolean mysqlAutoReconnect
      Whether the MySQL connection should automatically reconnect.
  • Constructor Details Link icon

    • Config Link icon

      public Config()
      Constructs a new configuration instance.

      Initializes the plugin description file from the RealEstate instance.

  • Method Details Link icon

    • getString Link icon

      public String getString(List<String> li)
      Converts a list of strings into a single string with each element separated by a semicolon.
      Parameters:
      li - the list of strings
      Returns:
      the concatenated string
    • getList Link icon

      public List<String> getList(String str)
      Splits a string into a list using semicolon as the delimiter.
      Parameters:
      str - the string to split
      Returns:
      a list of strings
    • loadConfig Link icon

      public void loadConfig()
      Loads the configuration from the file specified by configFilePath.
      Overrides:
      loadConfig in class me.EtienneDx.AnnotationConfig.AnnotationConfig