Fix string.format param order
This commit is contained in:
parent
f3e38031ab
commit
e7d876e865
@ -64,7 +64,7 @@ public class AntiSpamManager extends MiniPlugin
|
||||
event.setCancelled(true);
|
||||
if (_messageFormatter != null)
|
||||
{
|
||||
String formattedMessage = String.format(player.getName(), message, _messageFormatter.getChatFormat(player, message));
|
||||
String formattedMessage = String.format(_messageFormatter.getChatFormat(player, message).getFormat(), player.getName(), message);
|
||||
event.getPlayer().sendMessage(formattedMessage);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user