Add default 'FF' event
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
1b22f9b895
Commit
e4b3f32e42
@ -91,11 +91,13 @@ public class CustomScriptListener implements Listener {
|
|||||||
YAPIONObject yapionObject;
|
YAPIONObject yapionObject;
|
||||||
if (s == null) {
|
if (s == null) {
|
||||||
yapionObject = new YAPIONObject();
|
yapionObject = new YAPIONObject();
|
||||||
|
yapionObject.getYAPIONMapOrSetDefault("events", new YAPIONMap()).add("FF", new YAPIONArray().add("#!EVENT FF\ngui"));
|
||||||
} else {
|
} else {
|
||||||
yapionObject = YAPIONParser.parse(s);
|
yapionObject = YAPIONParser.parse(s);
|
||||||
if (yapionObject.containsKey("")) {
|
if (yapionObject.containsKey("")) {
|
||||||
yapionObject.add("commands", yapionObject.getMap(""));
|
yapionObject.add("commands", yapionObject.getMap(""));
|
||||||
yapionObject.remove("");
|
yapionObject.remove("");
|
||||||
|
yapionObject.getYAPIONMapOrSetDefault("events", new YAPIONMap()).add("FF", new YAPIONArray().add("#!EVENT FF\ngui"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren