WorldGuard icon indicating copy to clipboard operation
WorldGuard copied to clipboard

Prevent the use of leads to tow boats from outside the WorldGuard region to take away animals within the region

Open Huge-mistake opened this issue 8 months ago • 0 comments

The Problem

Starting from version 1.21, players can use a lead to tie up a boat. Some players can first tie up a boat with a lead outside the WorldGuard region, then lead the boat into the WorldGuard region to make creatures bump into and sit on the boat, taking them away. This method can be used to steal creatures within the WorldGuard region. It is very versatile. After mastering the technique, players can even use elytra to fly away with the creatures.

https://github.com/user-attachments/assets/6d9a05b1-e339-46f4-9acb-7e7b1a584a3e

A Solution

Is there a corresponding event that can be listened to, in order to distinguish boats that enter from outside the WorldGuard region and prevent creatures from being so easily stolen?

Alternatives

When a creature attempts to get on a boat, first check whether the nearest player has permission within the WorldGuard region. If not, cancel the creature's action of getting on the boat.

Anything Else?

No response

Huge-mistake avatar Apr 08 '25 21:04 Huge-mistake