Added ongoing rent to Config
This commit is contained in:
parent
cb35296c2c
commit
1b18797ad5
@ -37,6 +37,8 @@ public class Config extends AnnotationConfig
|
||||
public String cfgReplaceRent = "FOR RENT";
|
||||
@ConfigField(name="RealEstate.Keywords.Replace.Lease", comment = "What is displayed on signs for preoperties to lease")
|
||||
public String cfgReplaceLease = "FOR LEASE";
|
||||
@ConfigField(name="RealEstate.Keywords.Replace.Ongoing.Rent", comment = "What is displayed on the first line of the sign once someone rents a claim.")
|
||||
public String cfgReplaceOngoingRent = "[Rented]";
|
||||
|
||||
@ConfigField(name="RealEstate.Rules.Sell", comment = "Is selling claims enabled?")
|
||||
public boolean cfgEnableSell = true;
|
||||
|
||||
@ -122,7 +122,7 @@ public class ClaimRent extends BoughtTransaction
|
||||
else if(sign.getBlock().getState() instanceof Sign)
|
||||
{
|
||||
Sign s = (Sign) sign.getBlock().getState();
|
||||
s.setLine(0, ChatColor.GOLD + "[Rented]"); //Changed the header to "[Rented]" so that it won't waste space on the next line and allow the name of the player to show underneath.
|
||||
s.setLine(0, ChatColor.GOLD + RealEstate.instance.config.cfgReplaceOngoingRent); //Changed the header to "[Rented]" so that it won't waste space on the next line and allow the name of the player to show underneath.
|
||||
s.setLine(1, Utils.getSignString(Bukkit.getOfflinePlayer(buyer).getName()));//remove "Rented by"
|
||||
s.setLine(2, "Time remaining : ");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user