Fix migration problems
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
e4b3f32e42
Commit
ba04619bf4
@ -51,7 +51,7 @@ public class CustomScript {
|
||||
}
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public class InventoryEvent implements CustomEvent {
|
||||
public static class InventoryEvent implements CustomEvent {
|
||||
public final BookMeta bookMeta;
|
||||
public final String eventName;
|
||||
|
||||
@ -68,7 +68,7 @@ public class CustomScript {
|
||||
}
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public class MenuEvent implements CustomEvent, MenuScript {
|
||||
public static class MenuEvent implements CustomEvent, MenuScript {
|
||||
public final List<String> pages;
|
||||
public final String eventName;
|
||||
|
||||
@ -159,7 +159,7 @@ public class CustomScript {
|
||||
}
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public class InventoryCommand implements CustomCommand {
|
||||
public static class InventoryCommand implements CustomCommand {
|
||||
public final BookMeta bookMeta;
|
||||
public final String[] args;
|
||||
|
||||
@ -176,7 +176,7 @@ public class CustomScript {
|
||||
}
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public class MenuCommand implements CustomCommand, MenuScript {
|
||||
public static class MenuCommand implements CustomCommand, MenuScript {
|
||||
public final List<String> pages;
|
||||
public final String[] args;
|
||||
|
||||
|
@ -131,7 +131,7 @@ public class CustomScriptListener implements Listener {
|
||||
YAPIONMap eventsMap = new YAPIONMap();
|
||||
yapionObject.add("events", eventsMap);
|
||||
playerMap.get(p).stream().filter(CustomScript.MenuEvent.class::isInstance).map(CustomScript.MenuEvent.class::cast).forEach(menuCommand -> {
|
||||
menuCommand.toYAPION(commandsMap);
|
||||
menuCommand.toYAPION(eventsMap);
|
||||
});
|
||||
return yapionObject;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren