Script System Lua #178
@ -88,13 +88,12 @@ public class ScriptRunner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean callEvent(Player player, SteamWarGlobalLuaPlugin.EventType event, LuaValue eventValue) {
|
public static boolean callEvent(Player player, SteamWarGlobalLuaPlugin.EventType event, LuaValue eventValue) {
|
||||||
Map<SteamWarGlobalLuaPlugin.EventType, List<LuaFunction>> stringListMap = EVENT_MAP.get(player);
|
List<LuaFunction> luaFunctions = EVENT_MAP.getOrDefault(player, Collections.emptyMap()).getOrDefault(event, Collections.emptyList());
|
||||||
if (stringListMap == null) {
|
if (luaFunctions == null) {
|
||||||
return false;
|
if(event == SteamWarGlobalLuaPlugin.EventType.FF) {
|
||||||
|
player.performCommand("gui");
|
||||||
}
|
}
|
||||||
|
|
||||||
List<LuaFunction> luaFunctions = stringListMap.get(event);
|
|
||||||
if (luaFunctions == null) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren