Anti Spammer, Chat Bypass
-
Anti Spammer
Removes similar messages
var S02PacketChat = Java.type('net.minecraft.network.play.server.S02PacketChat'), Minecraft = Java.type('net.minecraft.client.Minecraft'), messageAmount = 0, lastMessage = '', messageLine = 0; var script = registerScript({ name: 'Anti Spammer', version: '0.0.0', authors: ['Shurpe'] }); script.registerModule({ name: 'Anti Spammer', description: '', category: 'Fun' }, function (module) { module.on('packet', function (e) { var packet = e.getPacket() if (packet instanceof S02PacketChat) { var message = packet.getChatComponent(), formattedMessage = message.getFormattedText(), chatGUI = Minecraft.getMinecraft().ingameGUI.getChatGUI(); if (lastMessage === formattedMessage) { messageAmount++; chatGUI.deleteChatLine(messageLine); packet.getChatComponent().appendText(' §7x' + messageAmount); } else { messageAmount = 1; } messageLine > 256 ? messageLine = 0 : messageLine++; lastMessage = formattedMessage; chatGUI.printChatMessageWithOptionalDeletion(message, messageLine); e.cancelEvent(); } }); });
Chat Bypass
Can bypass hypixel
var C01PacketChatMessage = Java.type('net.minecraft.network.play.client.C01PacketChatMessage'); var script = registerScript({ name: 'Chat Bypass', version: '0.0.0', authors: ['Shurpe'] }); script.registerModule({ name: 'Chat Bypass', category: 'Fun', description: '' }, function (module) { module.on('packet', function(e) { packet = e.getPacket(); if (packet instanceof C01PacketChatMessage) { var message = packet.getMessage(); if (!message.startsWith('/')) { var m = message.split(' ').join(','), editedMessage = ''; for(i = 0; i < m.length; i++) { editedMessage += m[i].substr(0, 1) + 'ࠀ' + m[i].substr(1, i.length); } packet.message = editedMessage.split(',').join(' '); } } }); });
-
@skidma very noice