Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
0e17679fab
Commit
8e133f0832
@ -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());
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren