Skip to content

Releases: Muqsit/DimensionPortals

v0.2.2

25 Mar 20:46
Compare
Choose a tag to compare
  • Implemented PlayerPortalTeleportEvent::$block_position (position of the portal block)

v0.2.0

24 Jan 10:04
Compare
Choose a tag to compare
  • Fixed bug: Portals are wrongfully destroyed on any neighbouring block update
  • Simplified portal creation and destruction logic
  • Added PlayerCreatePortalEvent::$transaction property to track changed blocks
    This is useful for grief prevention plugins and the likes, to perform checks for whether a portal intersects a protected region:
    /** @var PlayerCreatePortalEvent $event */
    $positions = [];
    foreach($event->transaction->getBlocks() as [$x, $y, $z, $block]){
    	$positions[] = new Vector3($x, $y, $z);
    }
    $min = Vector3::minComponents(...$positions);
    $max = Vector3::maxComponents(...$positions);
    if(/* min-max intersects a protected region */){
    	$event->cancel();
    }

v0.1.4

01 Jun 14:50
Compare
Choose a tag to compare
  • Added support for PocketMine-MP v5.0.0
  • Dropped support for PocketMine-MP v4.x.x