gdpc icon indicating copy to clipboard operation
gdpc copied to clipboard

Build area enforcement

Open avdstaaij opened this issue 2 years ago • 2 comments

GDMC-HTTP 1.3.2 has added opt-in support for enforcing the build area. There should be an option in GDPC to make use of this feature.

Enforcing the build area should probably be enabled by default, making this a breaking change.

avdstaaij avatar Jul 15 '23 18:07 avdstaaij

An addition to the GET /blocks and PUT /blocks endpoints, the withinBuildArea flag will also be added to the following endpoints in the upcoming GDMC-HTTP 1.4 release:

  • GET /biomes
  • GET /structure
  • POST /structure
  • GET /chunks

Niels-NTG avatar Jul 15 '23 18:07 Niels-NTG

Very nice! Perhaps there should be two modes in GDPC: "write enforcement", which would block placement outside the buildarea, and "read-write enforcement", which would block reads as well. I suppose there could also be a "read enforcement" for completeness.

avdstaaij avatar Jul 15 '23 21:07 avdstaaij