EngineHub / EngineHub/WorldGuard

Prevent removing himself from region owners if there are no other owners left

Open
#1,834 0 comments 1 reaction 0 assignees View on GitHub
status:pending type:feature-request
Dominant language
Java
Stars
938
Forks
671
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

Yes, I have `max-region-count-per-player: 4` but player claims a region, adds himself to member list of it, then removes himself from owner list and then creates 5, 6, 7... and more regions in total.

**Describe the solution you'd like**

Add a permission like `worldguard.region.removeowner.self` that allows removing himself from regions IF no other owners are left in it, otherwise show error message e.g. `You can't remove yourself from this region because there are no other owners!`.

**Describe alternatives you've considered**

Remove access to remove owner command from players?..

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.