Archiviert
1
0

Merge pull request 'Fixed Badlion Mods' (#133) from badlion-fix into master

Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2020-10-20 22:03:03 +02:00
Commit 9a4cead056

Datei anzeigen

@ -3,6 +3,7 @@ package de.steamwar.bungeecore.listeners.mods;
import de.steamwar.bungeecore.listeners.BasicListener; import de.steamwar.bungeecore.listeners.BasicListener;
import net.md_5.bungee.api.event.PostLoginEvent; import net.md_5.bungee.api.event.PostLoginEvent;
import net.md_5.bungee.event.EventHandler; import net.md_5.bungee.event.EventHandler;
import net.md_5.bungee.protocol.packet.PluginMessage;
public class Badlion extends BasicListener { public class Badlion extends BasicListener {
@ -22,7 +23,7 @@ public class Badlion extends BasicListener {
"ToggleSprint":{"disabled":true} "ToggleSprint":{"disabled":true}
} }
*/ */
event.getPlayer().sendData("badlion:mods", ("{" + event.getPlayer().unsafe().sendPacket(new PluginMessage("badlion:mods", ("{" +
"\"Clear Glass\":{\"disabled\":true}," + "\"Clear Glass\":{\"disabled\":true}," +
"\"ClearWater\":{\"disabled\":true}," + "\"ClearWater\":{\"disabled\":true}," +
"\"FOV Changer\":{\"disabled\":true}," + "\"FOV Changer\":{\"disabled\":true}," +
@ -33,6 +34,6 @@ public class Badlion extends BasicListener {
"\"Schematica\":{\"disabled\":true}," + "\"Schematica\":{\"disabled\":true}," +
"\"ToggleSneak\":{\"disabled\":true}," + "\"ToggleSneak\":{\"disabled\":true}," +
"\"ToggleSprint\":{\"disabled\":true}" + "\"ToggleSprint\":{\"disabled\":true}" +
"}").getBytes()); "}").getBytes(), false));
} }
} }