@EventHandler
    public void onMove(PlayerMoveEvent event){

        for (CuboidAction action : actions) {
            if(action.getCuboid().intersects(event.getTo()) || action.getCuboid().intersects(event.getFrom())){
                action.onAction(event.getPlayer(), event.getFrom(), event.getTo());
            }
        }
    }