Land claiming how??

Discussion in 'Plugin Development' started by IsThisDisplayed, Jun 15, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    IsThisDisplayed

    How do i make my own land claiming plugin?? like: /fs claim 16 16
    16 16 being the chunk theyr standing in
     
  2. Offline

    timtower Administrator Administrator Moderator

    @IsThisDisplayed Depends on what you want to do with it.
    You need to store it at least somewhere.
     
  3. Offline

    IsThisDisplayed

    Im making a factions plugin, it has all the features it needs just needa figure out claiming xD
     
  4. Offline

    timtower Administrator Administrator Moderator

    @IsThisDisplayed Make a container, store the x and y of the chunk in there and the faction that owns the chunk.
     
  5. Offline

    MightyOne

    you ask this question as if you don't even know how claiming works.
    a claim would be a rectangle between a minimal and a maximal coordinate and every interaction within this rectangle by players who does not own the claim will be cancelled.

    Now you can think about any way to create this minimum and maximum relative to a players location. Next thing would be to cancel all PlayerInteractEvents relating to blocks inside this rectangle. Last step would be to save these claims somehow in a config so and restore them when loading the plugin.

    At which point do you get problems?
     
Thread Status:
Not open for further replies.

Share This Page