Fix string.format param order

This commit is contained in:
Shaun Bennett 2016-08-29 21:33:00 -04:00
parent f3e38031ab
commit e7d876e865

View File

@ -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);
}
}