[SPIGOT-6462] When canceling PortalCreateEvent or EntityPortalCreateEvent he is allowing the creation of portals Created: 20/May/21  Updated: 23/May/21  Resolved: 23/May/21

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Daniel Baer Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: Craftbukkit, bug, spigot

Attachments: PNG File image_2021-05-20_224601.png    
Version: 1.16.5
Plugin: spigot
Guidelines Read: Yes

 Description   

Expected behavior

When canceling the PortalCreateEvent or EntityPortalCreateEvent he should block the portal from being created
After canceling the spawn of a dragon from CreatureSpawnEvent, a bossbar should not appear since the dragon's spawn is canceled
Note: Nether portal is cancelled, only the end portal is not.

Observed/Actual behavior

When canceling PortalCreateEvent or EntityPortalCreateEvent he is allowing the creation of portals but I believe the problem here is that the event is not being called so it is not canceled ...
After canceling the spawn of the CreatureSpawnEvent dragon, a boss bar appears, and the event is canceled (the dragon is not born but regardless a boss bar appears)

Plugin list

FastAsyncWorldEdit-Bukkit-1.16-655
HolographicDisplays
Multiverse-Core-4.2.2
ProtocolLib



 Comments   
Comment by Daniel Baer [ 23/May/21 ]

md_5 DragonEggFormEvent is from paper. We tried reporting this to Paperspigot but they forwarded us to you. This also appears to happen on spigot.

Comment by Jake Potrebic [ 23/May/21 ]

That isn't the end portal, that's the end platform. As the CreateReason.END_PLATFORM would suggest. (The obsidian square platform that is generated in the end).

Comment by md_5 [ 23/May/21 ]

Machine Maker yes it is: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/nms-patches/net/minecraft/server/level/WorldServer.patch#737

Additionally DragonEggFormEvent is not a spigot event, so I'm skeptical this was tested properly

Comment by Daniel Baer [ 22/May/21 ]

Can this feature be added? I have seen multiple reports about this and people thinking it is a bug. 

Comment by Jake Potrebic [ 22/May/21 ]

Take a look at the create reasons for PortalCreateEvent, it's not currently called for the end portal, so that'd be more of a feature request than a bug fix since I'm not sure it was ever supposed to cancel the creation of the end portal.

Comment by Black Hole [ 21/May/21 ]

You're running a very outdated version. Please build a fresh copy of Spigot using BuildTools and try to reproduce again.

Comment by Daniel Baer [ 21/May/21 ]

CraftBukkit version 2991-Spigot-018b9a0-f3f3094 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)

Comment by Black Hole [ 20/May/21 ]

Please state the output of the /version command.

Generated at Tue Apr 15 09:41:44 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.