I need yet another plugin.
I want to prevent the throne from being captured, if the actual king is still alive.
So the throne can only be captured, if the former king was killed, or died, our surrendered the throne.
I already realised, that the "IsKing" check, does not work in that way.
I had two ideas for this, but again I can't code this myself.
1st: instead of the IsKing the plugin could check if the player possesses the Kings Sword, or the Crown and thus identifying him as king.
2nd:
When a player claims the throne, the OnClaimThroneComplete generates a new entry, either in a seperate file for the mod, or in the permissions.cfg
For example:
A player claims the throne.
He will then be automatically added to the usergroup King.
When someone tries to claim the throne, the mod checks if ANYONE is registered under the usergroup King. If yes, the event is cancelled, if not, the throne can be claimed.
Of course then, OnPlayerDeath the mod has to check if player is usergroup king, if yes, revoke, and add to group citizen again.
Hope somebody can help me
Solved Throne capturing
Discussion in 'Plugin Requests' started by juk3b0x, Jun 3, 2016.