From 0174d9cb95bdbc7e44a8b7e58f22ebc500c54bc1 Mon Sep 17 00:00:00 2001 From: Fabian Gal Date: Sat, 17 Apr 2021 23:31:57 +0100 Subject: [PATCH] MAde space for the Rent sign so it will allow the full player name to be displayed underneath --- RealEstate.iml | 36 +++++++++++++++++++ .../RealEstate/Transactions/ClaimRent.java | 4 +-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 RealEstate.iml diff --git a/RealEstate.iml b/RealEstate.iml new file mode 100644 index 0000000..7f65c0c --- /dev/null +++ b/RealEstate.iml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/me/EtienneDx/RealEstate/Transactions/ClaimRent.java b/src/me/EtienneDx/RealEstate/Transactions/ClaimRent.java index 49cbab8..68a1965 100644 --- a/src/me/EtienneDx/RealEstate/Transactions/ClaimRent.java +++ b/src/me/EtienneDx/RealEstate/Transactions/ClaimRent.java @@ -107,8 +107,8 @@ public class ClaimRent extends BoughtTransaction else if(sign.getBlock().getState() instanceof Sign) { Sign s = (Sign) sign.getBlock().getState(); - s.setLine(0, RealEstate.instance.config.cfgSignsHeader); - s.setLine(1, Utils.getSignString("Rented by " + Bukkit.getOfflinePlayer(buyer).getName())); + 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(1, Utils.getSignString(Bukkit.getOfflinePlayer(buyer).getName()));//remove "Rented by" s.setLine(2, "Time remaining : "); int daysLeft = duration - days - 1;// we need to remove the current day