added configurable suffix for webchat

This commit is contained in:
Arthur Mayer 2011-05-31 23:30:02 +02:00
parent cd02926fb0
commit af51d8b7e0
5 changed files with 6 additions and 5 deletions

View file

@ -44,7 +44,7 @@ public class InternalClientUpdateComponent extends ClientUpdateComponent {
protected void webChat(String name, String message) {
// TODO: Change null to something meaningful.
plugin.mapManager.pushUpdate(new Client.ChatMessage("web", null, name, message, null));
Log.info(plugin.configuration.getString("webprefix", "[WEB] ") + name + ": " + message);
Log.info(plugin.configuration.getString("webprefix", "¤2[WEB] ") + name + ": " + plugin.configuration.getString("websuffix", "¤f") + message);
ChatEvent event = new ChatEvent("web", name, message);
plugin.events.trigger("webchat", event);
}