SteamWar/BauSystem2.0
Archiviert
12
0

Probable fix for SelfJoin Event
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-03-13 20:58:53 +01:00
Ursprung 0e17679fab
Commit 8e133f0832
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -47,7 +47,7 @@ public class ScriptListener implements Listener {
new ScriptExecutor((BookMeta) item.getItemMeta(), event.getPlayer(), null); new ScriptExecutor((BookMeta) item.getItemMeta(), event.getPlayer(), null);
} }
@EventHandler @EventHandler(priority = EventPriority.LOWEST)
public void onPlayerJoin(PlayerJoinEvent event) { public void onPlayerJoin(PlayerJoinEvent event) {
GLOBAL_CONTEXT.put(event.getPlayer(), new Context()); GLOBAL_CONTEXT.put(event.getPlayer(), new Context());
} }

Datei anzeigen

@ -30,6 +30,7 @@ import org.bukkit.Bukkit;
import org.bukkit.entity.EntityType; import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.bukkit.event.block.Action; import org.bukkit.event.block.Action;
import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.BlockBreakEvent;
@ -58,7 +59,7 @@ public class EventListener implements Listener {
}, 2, 2); }, 2, 2);
} }
@EventHandler @EventHandler(priority = EventPriority.MONITOR)
public void onPlayerJoin(PlayerJoinEvent event) { public void onPlayerJoin(PlayerJoinEvent event) {
manager.callEvent(EventType.SelfJoin, event.getPlayer(), event); manager.callEvent(EventType.SelfJoin, event.getPlayer(), event);
} }