thexaero / open-parties-and-claims

Minecraft mod that adds chunk claims and player parties
https://www.curseforge.com/minecraft/mc-mods/open-parties-and-claims
Other
39 stars 20 forks source link

Admin Ability to Transfer Ownership #453

Open ajioe1111 opened 7 months ago

ajioe1111 commented 7 months ago

There are times when an admin wants to transfer ownership of a chunk to a player, but currently, I don't have the capability to do so! It would be beneficial to add a command that would allow transferring a chunk to another player.

Additionally, it would be helpful if this functionality could be supported at the command level to enable automation. Something along the lines of (openpac-claim > claim > transfer > chunk > player) would be ideal.

thexaero commented 7 months ago

You kinda do have that ability. You just have to unclaim a chunk in admin mode and let the player claim it. But I'll consider adding a command that does it all.

ajioe1111 commented 7 months ago

I'll try to explain in more detail. On my server, I actively use KubeJS and many things are automated. Many commands that require manual input are executed by a script. I want to use your mod, which, by the way, is quite well made, for a simple system of exchanging privates between the server and players. Essentially, a player has the option to "buy" a privatized chunk within the game, and for this automation, I need a command to transfer the private in chunk N to the new owner N.

thexaero commented 6 months ago

I see. I was just explaining that it is possible to transfer a chunk in general, your case is more specific.

I don't think this mod is really made for your use case atm. I am planning to add improvements to the API which would enable add-ons that handle claims this way, e.g. prevent players from claiming under certain conditions (they can't afford it) or react to new claims (subtract currency from the player). But perhaps I'll also add a built-in "mode" for this that doesn't let players claim on their own and requires the use of (automated) commands to give people claims, as you're suggesting.