mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 13:07:29 +01:00
Whitelist hoppers and let them cross regions regardless of permissions.
This commit is contained in:
parent
93ced5ca7a
commit
3c8121d088
@ -117,7 +117,9 @@ private void tellErrorMessage(DelegateEvent event, Cause cause, Location locatio
|
||||
private boolean isWhitelisted(Cause cause, World world) {
|
||||
Object rootCause = cause.getRootCause();
|
||||
|
||||
if (rootCause instanceof Player) {
|
||||
if (rootCause instanceof Block) {
|
||||
return ((Block) rootCause).getType() == Material.HOPPER;
|
||||
} else if (rootCause instanceof Player) {
|
||||
Player player = (Player) rootCause;
|
||||
WorldConfiguration config = getWorldConfig(world);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user