mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-12-29 03:24:20 +00:00
fix enforced format
This commit is contained in:
parent
8a144e85ed
commit
60c5f94c88
1 changed files with 2 additions and 2 deletions
|
@ -45,12 +45,12 @@ public class ChatListener implements Listener {
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST)
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
public void onPlayerChatLate(AsyncPlayerChatEvent event) {
|
public void onPlayerChatLate(AsyncPlayerChatEvent event) {
|
||||||
final String format = event.getFormat();
|
String format = event.getFormat();
|
||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
final MPlayer mplayer = core.getMPlayer(player.getUniqueId());
|
final MPlayer mplayer = core.getMPlayer(player.getUniqueId());
|
||||||
|
|
||||||
if(Settings.FORCE_FORMAT.value()) {
|
if(Settings.FORCE_FORMAT.value()) {
|
||||||
event.setFormat("{marriage_status}" + event.getFormat()); // Enforce marriage format
|
format = "{marriage_status}" + event.getFormat(); // Enforce marriage format
|
||||||
}
|
}
|
||||||
|
|
||||||
// Marriage status
|
// Marriage status
|
||||||
|
|
Loading…
Reference in a new issue