GCC-Minecraft-Team / sps-mc-link-spigot

Spigot plugin to link SPS and MC accounts
3 stars 1 forks source link

Switch to world groups claim/team system #8

Closed 2kai2kai2 closed 3 years ago

2kai2kai2 commented 3 years ago
"myworldgroupname": {
  "worlds": ["world", "world_nether", "world_the_end"],
  "claimable": ["world"],
  "claims": {
    "1uuid-uuid-uuid-uuid1": [{"x": 1, "z": 1, "world": "world"}, {"x": 1, "z": 2, "world": "world"}]
  },
  "teams": [
    {"name": "thecoolteam", "members": ["uuidabcdefg", "uuid1234567", "uuidasdfghj"], "leader": "uuidabcdefg"}
  ]
}
nlaha commented 3 years ago

working on database functions now

2kai2kai2 commented 3 years ago

working on world group commands (definitely op-only)

nlaha commented 3 years ago

World groups will be stored like this in the DB

Mongo Document:

"worldgroup_id": "Random UUID"
"worlds": ["world", "world_nether", "world_the_end"],
"claimable": ["world"],
"claims": {
  "1uuid-uuid-uuid-uuid1": [{"x": 1, "z": 1, "world": "world"}, {"x": 1, "z": 2, "world": "world"}]
},
"teams": [
   {"name": "thecoolteam", "members": ["uuidabcdefg", "uuid1234567", "uuidasdfghj"], "leader": "uuidabcdefg"}
]