fix enforced format

This commit is contained in:
Lennart ten Wolde 2016-03-19 17:30:51 +01:00
parent 8a144e85ed
commit 60c5f94c88

View file

@ -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