use of com.sk89q.worldedit.session.SessionManager in project JeffLib by JEFF-Media-GbR.
the class WorldEditHandler method getSelectedRegion.
private static Region getSelectedRegion(final org.bukkit.entity.Player player) throws IncompleteRegionException {
final Player actor = BukkitAdapter.adapt(player);
final SessionManager manager = WorldEdit.getInstance().getSessionManager();
final LocalSession session = manager.get(actor);
final World selectionWorld = session.getSelectionWorld();
return session.getSelection(selectionWorld);
}
Aggregations