Yet Another World Protector

Yet Another World Protector

247k Downloads

feat: Player focused claiming system

Z0rdak opened this issue ยท 1 comments

commented

Description

Until now, YAWP works basically as a tool for admins/operators/moderators of a server. This works (more or less) fine. It is possible to define Local Regions and "give" them to players by making them the owner of a Local Regions.

This is wanted by some server admins but can be quite tedious to manage (without the help of other mods or command blocks). To help with this, an alternative or rather addition for this would be a player focused claiming system, which allows players, based on their rank/permission to claim a specific amount of blocks/number of regions in a dimension. These settings would be configurable.

This will not replace the existing system, but can be configured to be used in addition to the existing system.

Todo

  • Either implement rank system or use existing on from other mods
  • Implement permission (based on ranks?) for claiming
    • Number of blocks (blocks per dimension)
    • Number of regions (regions per dimension)
    • Number of child-regions
    • Allowance to use triggers for regions
    • ...
  • Add configuration for permission settings
  • Add CLI support to manage claiming permissions

Notes

  • This system could, in the future, be expanded with an API to sell/rent regions to players.

Related Issues

commented

Something like this would be great! You can take inspiration from the FLAN mod:

  • Players can claim mods by right clicking two points in the world with an item (for example a golden hoe)
  • Players can view if a mod is claimed by right clicking a block with an item (for example a stick)
  • Instead of ranks, have a simple abstract concept of "claim blocks". Claim blocks can be earned in multiple ways, such as awarded over time or being "bought"
    • The buy/sell handler can be as simple as a config line that has a certain item + quantity
    • If the user executes /yawp buy and has the required quantity of item, it is removed from their inventory and instead they get 1 claim block
  • Claiming in the world then costs 1 claim block per block claimed

For regions or dimensions, maybe these have their own claim block "currency"?