Signed-off-by: Chaoscaot <chaoscaot@zohomail.eu>
Dieser Commit ist enthalten in:
Ursprung
bf2e1c694d
Commit
900bbb0aec
@ -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 = stringListMap.get(event);
|
||||
List<LuaFunction> luaFunctions = EVENT_MAP.getOrDefault(player, Collections.emptyMap()).getOrDefault(event, Collections.emptyList());
|
||||
if (luaFunctions == null) {
|
||||
if(event == SteamWarGlobalLuaPlugin.EventType.FF) {
|
||||
player.performCommand("gui");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren