mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Merge pull request #202 from MiLk/encoding
Use unicode hexadecimal for specials characters
This commit is contained in:
commit
a827843365
@ -46,7 +46,7 @@ public class InternalClientUpdateComponent extends ClientUpdateComponent {
|
|||||||
protected void webChat(String name, String message) {
|
protected void webChat(String name, String message) {
|
||||||
// TODO: Change null to something meaningful.
|
// TODO: Change null to something meaningful.
|
||||||
plugin.mapManager.pushUpdate(new Client.ChatMessage("web", null, name, message, null));
|
plugin.mapManager.pushUpdate(new Client.ChatMessage("web", null, name, message, null));
|
||||||
Log.info(plugin.configuration.getString("webprefix", "§2[WEB] ") + name + ": " + plugin.configuration.getString("websuffix", "§f") + message);
|
Log.info(plugin.configuration.getString("webprefix", "\u00A72[WEB] ") + name + ": " + plugin.configuration.getString("websuffix", "\u00A7f") + message);
|
||||||
ChatEvent event = new ChatEvent("web", name, message);
|
ChatEvent event = new ChatEvent("web", name, message);
|
||||||
plugin.events.trigger("webchat", event);
|
plugin.events.trigger("webchat", event);
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,7 @@ public class JsonFileClientUpdateComponent extends ClientUpdateComponent {
|
|||||||
protected void webChat(String name, String message) {
|
protected void webChat(String name, String message) {
|
||||||
// TODO: Change null to something meaningful.
|
// TODO: Change null to something meaningful.
|
||||||
plugin.mapManager.pushUpdate(new Client.ChatMessage("web", null, name, message, null));
|
plugin.mapManager.pushUpdate(new Client.ChatMessage("web", null, name, message, null));
|
||||||
Log.info(plugin.configuration.getString("webprefix", "§2[WEB] ") + name + ": " + plugin.configuration.getString("websuffix", "§f") + message);
|
Log.info(plugin.configuration.getString("webprefix", "\u00A2[WEB] ") + name + ": " + plugin.configuration.getString("websuffix", "\u00A7f") + message);
|
||||||
ChatEvent event = new ChatEvent("web", name, message);
|
ChatEvent event = new ChatEvent("web", name, message);
|
||||||
plugin.events.trigger("webchat", event);
|
plugin.events.trigger("webchat", event);
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ public class SimpleWebChatComponent extends Component {
|
|||||||
plugin.events.addListener("webchat", new Event.Listener<ChatEvent>() {
|
plugin.events.addListener("webchat", new Event.Listener<ChatEvent>() {
|
||||||
@Override
|
@Override
|
||||||
public void triggered(ChatEvent t) {
|
public void triggered(ChatEvent t) {
|
||||||
plugin.getServer().broadcastMessage(plugin.configuration.getString("webprefix", "§2[WEB] ") + t.name + ": " + plugin.configuration.getString("websuffix", "§f") + t.message);
|
plugin.getServer().broadcastMessage(plugin.configuration.getString("webprefix", "\u00A72[WEB] ") + t.name + ": " + plugin.configuration.getString("websuffix", "\u00A7f") + t.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public class HeroWebChatComponent extends Component {
|
|||||||
public void triggered(ChatEvent t) {
|
public void triggered(ChatEvent t) {
|
||||||
/* Let HeroChat take a look - only broadcast to players if it doesn't handle it */
|
/* Let HeroChat take a look - only broadcast to players if it doesn't handle it */
|
||||||
if (!handler.sendWebMessageToHeroChat(t.name, t.message)) {
|
if (!handler.sendWebMessageToHeroChat(t.name, t.message)) {
|
||||||
plugin.getServer().broadcastMessage(plugin.configuration.getString("webprefix", "§2[WEB] ") + t.name + ": " + plugin.configuration.getString("websuffix", "§f") + t.message);
|
plugin.getServer().broadcastMessage(plugin.configuration.getString("webprefix", "\u00A72[WEB] ") + t.name + ": " + plugin.configuration.getString("websuffix", "\u00A7f") + t.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user