diff --git a/examplemods/talkback.js b/examplemods/talkback.js
new file mode 100644
index 0000000..d6155fb
--- /dev/null
+++ b/examplemods/talkback.js
@@ -0,0 +1,15 @@
+(() => {
+ PluginAPI.dedicatedServer.appendCode(function () {
+ PluginAPI.addEventListener("processcommand", (event) => {
+ if (event.command.toLowerCase().startsWith("/talkback")) {
+ var message = event.command.substring("/talkback ".length);
+ if (
+ ModAPI.hooks._teavm.$rt_isInstance(event.sender, ModAPI.hooks._classMap[ModAPI.util.getCompiledName("net.minecraft.entity.player.EntityPlayerMP")].class)
+ ) {
+ event.sender.addChatMessage(ModAPI.hooks._classMap[ModAPI.util.getCompiledName("net.minecraft.util.ChatComponentText")].constructors[0](ModAPI.util.str(message.toUpperCase())));
+ }
+ event.preventDefault = true;
+ }
+ });
+ });
+})();
\ No newline at end of file
diff --git a/injector.html b/injector.html
index 8160c04..4a8b0ac 100644
--- a/injector.html
+++ b/injector.html
@@ -262,5 +262,6 @@ var main;(function(){`
+