fix: fixed #47, re info formatting and #51, re info duplicate prefix

This commit is contained in:
Etienne Dx 2022-04-15 14:38:06 +02:00 committed by EtienneDx
parent e6867800ed
commit 5afff455ea
5 changed files with 9 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>Me.EtienneDx</groupId>
<artifactId>real-estate</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
<name>RealEstate</name>
<description>A spigot plugin for selling, renting and leasing GriefPrevention claims</description>
<build>

View File

@ -472,6 +472,11 @@ public class Messages extends AnnotationConfig
sendMessage(player, getMessage(message), 0);
}
//sends a color-coded message to a player
public static void sendMessage(CommandSender player, String message, Boolean fixColors) {
sendMessage(player, fixColors ? getMessage(message) : message, 0);
}
public static void sendMessage(CommandSender player, String message, long delayInTicks) {
SendPlayerMessageTask task = new SendPlayerMessageTask(player, message);

View File

@ -468,7 +468,7 @@ public class ClaimLease extends BoughtTransaction
claim.parent.getOwnerName()) + "\n";
}
}
Messages.sendMessage(player, msg);
Messages.sendMessage(player, msg, false);
}
else
{

View File

@ -467,7 +467,7 @@ public class ClaimRent extends BoughtTransaction
claim.parent.getOwnerName()) + "\n";
}
}
Messages.sendMessage(player, msg);
Messages.sendMessage(player, msg, false);
}
else
{

View File

@ -206,7 +206,7 @@ public class ClaimSell extends ClaimTransaction
claim.parent.getOwnerName()) + "\n";
msg += Messages.getMessage(RealEstate.instance.messages.msgInfoClaimInfoNote) + "\n";
}
Messages.sendMessage(player, msg);
Messages.sendMessage(player, msg, false);
}
else
{