forked from SteamWar/SteamWar
Fix Badlion restrictions (untested)
Fixes #dreamjxnas-bug-325.
This commit is contained in:
@@ -28,23 +28,26 @@ public class Badlion {
|
||||
|
||||
private final byte[] packet;
|
||||
|
||||
public Badlion() { //TODO check if working or (json) modsDisallowed wrapper necessary
|
||||
public Badlion() {
|
||||
JsonObject disabled = new JsonObject();
|
||||
disabled.addProperty("disabled", true);
|
||||
|
||||
JsonObject modsDisallowed = new JsonObject();
|
||||
modsDisallowed.add("Clear Glass", disabled);
|
||||
modsDisallowed.add("ClearWater", disabled);
|
||||
modsDisallowed.add("FOV Changer", disabled);
|
||||
modsDisallowed.add("Hitboxes", disabled);
|
||||
modsDisallowed.add("LevelHead", disabled);
|
||||
modsDisallowed.add("MiniMap", disabled);
|
||||
modsDisallowed.add("MLG Cobweb", disabled);
|
||||
modsDisallowed.add("Replay", disabled);
|
||||
modsDisallowed.add("Schematica", disabled);
|
||||
modsDisallowed.add("ToggleSneak", disabled);
|
||||
modsDisallowed.add("ToggleSprint", disabled);
|
||||
modsDisallowed.add("TNT Time", disabled);
|
||||
|
||||
JsonObject json = new JsonObject();
|
||||
json.add("Clear Glass", disabled);
|
||||
json.add("ClearWater", disabled);
|
||||
json.add("FOV Changer", disabled);
|
||||
json.add("Hitboxes", disabled);
|
||||
json.add("LevelHead", disabled);
|
||||
json.add("MiniMap", disabled);
|
||||
json.add("MLG Cobweb", disabled);
|
||||
json.add("Replay", disabled); //TODO check if ReplayMod restrictions work
|
||||
json.add("Schematica", disabled);
|
||||
json.add("ToggleSneak", disabled);
|
||||
json.add("ToggleSprint", disabled);
|
||||
json.add("TNT Time", disabled);
|
||||
json.add("modsDisallowed", modsDisallowed);
|
||||
|
||||
packet = json.toString().getBytes();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user