mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-12-28 11:04:24 +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)
|
||||
public void onPlayerChatLate(AsyncPlayerChatEvent event) {
|
||||
final String format = event.getFormat();
|
||||
String format = event.getFormat();
|
||||
final Player player = event.getPlayer();
|
||||
final MPlayer mplayer = core.getMPlayer(player.getUniqueId());
|
||||
|
||||
if(Settings.FORCE_FORMAT.value()) {
|
||||
event.setFormat("{marriage_status}" + event.getFormat()); // Enforce marriage format
|
||||
format = "{marriage_status}" + event.getFormat(); // Enforce marriage format
|
||||
}
|
||||
|
||||
// Marriage status
|
||||
|
|
Loading…
Reference in a new issue