From 50770242a7aab662f3b0c1a1d641511e1f385ed4 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 18 Oct 2020 16:07:48 +0200 Subject: [PATCH] Fixed Badlion not Disabling Mods --- .../bungeecore/listeners/mods/Badlion.java | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/de/steamwar/bungeecore/listeners/mods/Badlion.java b/src/de/steamwar/bungeecore/listeners/mods/Badlion.java index 1215624e..b0036161 100644 --- a/src/de/steamwar/bungeecore/listeners/mods/Badlion.java +++ b/src/de/steamwar/bungeecore/listeners/mods/Badlion.java @@ -3,6 +3,7 @@ package de.steamwar.bungeecore.listeners.mods; import de.steamwar.bungeecore.listeners.BasicListener; import net.md_5.bungee.api.event.PostLoginEvent; import net.md_5.bungee.event.EventHandler; +import net.md_5.bungee.protocol.packet.PluginMessage; public class Badlion extends BasicListener { @@ -22,17 +23,17 @@ public class Badlion extends BasicListener { "ToggleSprint":{"disabled":true} } */ - event.getPlayer().sendData("badlion:mods", ("{" + - "\"Clear Glass\":{\"disabled\":true}," + - "\"ClearWater\":{\"disabled\":true}," + - "\"FOV Changer\":{\"disabled\":true}," + - "\"Hitboxes\":{\"disabled\":true}," + - "\"MiniMap\":{\"disabled\":true}," + - "\"MLG Cobweb\":{\"disabled\":true}," + - "\"Replay\":{\"disabled\":true}," + - "\"Schematica\":{\"disabled\":true}," + - "\"ToggleSneak\":{\"disabled\":true}," + - "\"ToggleSprint\":{\"disabled\":true}" + - "}").getBytes()); + event.getPlayer().unsafe().sendPacket(new PluginMessage("badlion:mods", ("{" + + "\"Clear Glass\":{\"disabled\":true}," + + "\"ClearWater\":{\"disabled\":true}," + + "\"FOV Changer\":{\"disabled\":true}," + + "\"Hitboxes\":{\"disabled\":true}," + + "\"MiniMap\":{\"disabled\":true}," + + "\"MLG Cobweb\":{\"disabled\":true}," + + "\"Replay\":{\"disabled\":true}," + + "\"Schematica\":{\"disabled\":true}," + + "\"ToggleSneak\":{\"disabled\":true}," + + "\"ToggleSprint\":{\"disabled\":true}" + + "}").getBytes(), false)); } }