From 20283e33e026e8498f5352db310d1403d86c4a1b Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sat, 25 Oct 2025 12:04:28 +0200 Subject: [PATCH] Add Disconnect for norisk client users --- .../velocitycore/listeners/PluginMessage.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/listeners/PluginMessage.java b/VelocityCore/src/de/steamwar/velocitycore/listeners/PluginMessage.java index 2952a8b6..869f37c6 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/listeners/PluginMessage.java +++ b/VelocityCore/src/de/steamwar/velocitycore/listeners/PluginMessage.java @@ -137,6 +137,7 @@ public class PluginMessage extends BasicListener { "plasmo:voice/v2/installed", "plasmo:voice/v2", //https://modrinth.com/plugin/plasmo-voice (Voice chat) "inventorysorter:sync_blacklist_packet", //https://github.com/cpw/inventorysorter (needs server side component to work) "emi:ping", "emi:command", "emi:chess", //https://github.com/emilyploszaj/emi/ + "emi_loot:archaeology", "emi_loot:block", "emi_loot:chest", "emi_loot:clear_loot", "emi_loot:gameplay", "emi_loot:mob", // https://github.com/emilyploszaj/emi "fancymenu:execute_command", "fancymenu:packet_bridge", "minecraft:fancymenu_packet_bridge", //https://github.com/Keksuccino/FancyMenu (Custom menus) "itemswapper:enableshulker", "itemswapper:enablerefill", //https://github.com/tr7zw/ItemSwapper/tree/main (Easier inventory item swapping) "jade:show_overlay", "jade:receive_data", "jade:server_ping", "jade:server_ping_v1", //https://github.com/Snownee/Jade (Information over block/entity under crosshair) @@ -369,6 +370,11 @@ public class PluginMessage extends BasicListener { )) channelRegisterHandlers.put(channel, player -> Chatter.disconnect(player).prefixless("MOD_YELLOW_SING", "minimap")); + // Sending the restrictions currently does not work or the client ignores it + channelRegisterHandlers.put("norisk:main", player -> { + Chatter.disconnect(player).prefixless("MOD_YELLOW_SING", "norisk client"); + }); + for(String channel : Arrays.asList( "flashback:remote_food_data", "flashback:remote_set_slot", @@ -419,16 +425,15 @@ public class PluginMessage extends BasicListener { "bclib:hello_server", "vivecraft:data", //https://github.com/Vivecraft/VivecraftMod https://github.com/jrbudda/Vivecraft_Spigot_Extensions https://github.com/Techjar/Vivecraft_BungeeCord_Extensions (VR support) "badpackets:channel_sync", //https://github.com/badasintended/badpackets (Forge fabric translation layer) - "hero-api:mouse-packet", "hero-api:mouse-scroll" //TODO https://github.com/NoRiskClient Mit Superhelden-Mod? + "hero-api:mouse-packet", "hero-api:mouse-scroll", //TODO https://github.com/NoRiskClient Mit Superhelden-Mod? + "hyevent:location", "hyevent:register", // Hypixel mods (I could not find which sadly) + "hypixel:hello", "hypixel:party_info", "hypixel:ping", "hypixel:player_info", "hypixel:register", "hypixel:party_info", "hypixel:player_info", "hypixel:ping" // Hypixel mods (I could not find which sadly) )) { channelRegisterHandlers.put(channel, player -> {}); register(channel, false, directional(UNKNOWN, DROP)); } for(String channel : Arrays.asList( - "hyevent:location", "hyevent:register", // Hypixel mods (I could not find which sadly) - "hypixel:hello", "hypixel:party_info", "hypixel:ping", "hypixel:player_info", "hypixel:register", // Hypixel mods (I could not find which sadly) - "emi_loot:archaeology", "emi_loot:block", "emi_loot:chest", "emi_loot:clear_loot", "emi_loot:gameplay", "emi_loot:mob", // https://github.com/emilyploszaj/emi "UNREGISTER", "minecraft:unregister", // used by carpet and servux "WDL|REQUEST", "wdl:request", "minecraft:intave", //undocumented, byte stringlength, clientconfig, byte length, json {"legacySneakHeight":false,"legacyOldRange":false,"legacyOldSlowdown":false}