SteamWar/BauSystem2.0
Archiviert
12
0

Add default ff
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Chaoscaot <chaoscaot@zohomail.eu>
Dieser Commit ist enthalten in:
Chaoscaot 2023-05-21 14:55:46 +02:00
Ursprung bf2e1c694d
Commit 900bbb0aec

Datei anzeigen

@ -88,13 +88,12 @@ public class ScriptRunner {
}
public static boolean callEvent(Player player, SteamWarGlobalLuaPlugin.EventType event, LuaValue eventValue) {
Map<SteamWarGlobalLuaPlugin.EventType, List<LuaFunction>> stringListMap = EVENT_MAP.get(player);
if (stringListMap == null) {
return false;
List<LuaFunction> luaFunctions = EVENT_MAP.getOrDefault(player, Collections.emptyMap()).getOrDefault(event, Collections.emptyList());
if (luaFunctions == null) {
if(event == SteamWarGlobalLuaPlugin.EventType.FF) {
player.performCommand("gui");
}
List<LuaFunction> luaFunctions = stringListMap.get(event);
if (luaFunctions == null) {
return false;
}