HuskHomes icon indicating copy to clipboard operation
HuskHomes copied to clipboard

add a PlayerBack API Event

Open emmanuelvlad opened this issue 2 years ago • 5 comments

It would be nice to be able to cancel a PlayerBackEvent.

Ex: Not allowing /back to a specific location

emmanuelvlad avatar May 24 '22 03:05 emmanuelvlad

Added to the backlog for API v3 👍

WiIIiam278 avatar May 25 '22 10:05 WiIIiam278

There's a new TeleportEvent that lets you do this technically, though I suppose there's no specific way to see the source of the teleport (i.e. to see if it was a /back). What's the use case?

WiIIiam278 avatar Aug 29 '22 18:08 WiIIiam278

There's a new TeleportEvent that lets you do this technically, though I suppose there's no specific way to see the source of the teleport (i.e. to see if it was a /back). What's the use case?

Blocking the ability to /back in specific regions/player's island

emmanuelvlad avatar Aug 29 '22 19:08 emmanuelvlad

There's a new TeleportEvent that lets you do this technically, though I suppose there's no specific way to see the source of the teleport (i.e. to see if it was a /back). What's the use case?

Blocking the ability to /back in specific regions/player's island

Have you looked at LuckPerms' contextual permissions that let you deny nodes depending on circumstances such as world, location, metadata etc?

WiIIiam278 avatar Aug 29 '22 19:08 WiIIiam278

It's more about blocking the ability of being teleported back to specific regions, not blocking the usage of it

emmanuelvlad avatar Aug 29 '22 20:08 emmanuelvlad