mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-03 22:12:18 +01:00
parent
e05d42371f
commit
660f9ffa0d
@ -684,7 +684,8 @@ public void onCreatePortal(PortalCreateEvent event) {
|
||||
if (associable != null) {
|
||||
// NB there is no way to cancel the teleport without PTA (since PlayerPortal doesn't have block info)
|
||||
// removing PTA was a mistake
|
||||
associable.print("Destination is an a protected area.");
|
||||
String message = regions.queryValue(associable, Flags.DENY_MESSAGE);
|
||||
RegionProtectionListener.formatAndSendDenyMessage("create portals", associable, message);
|
||||
}
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user