Skip to content

Instantly share code, notes, and snippets.

@rbrick
Created October 16, 2014 20:43
Show Gist options
  • Save rbrick/90422f3e49911060d03f to your computer and use it in GitHub Desktop.
Save rbrick/90422f3e49911060d03f to your computer and use it in GitHub Desktop.
Team claim format. Contains two possible formats: One the claims are stored in the team file, the other it is stored in a separate file that stores a serialized TeamClaim object
{
"team_claims": [
{
"owning_team": "Xetha",
"maxX": 10,
"minX": -10,
"maxY": 256,
"minY": 0,
"maxZ": 10,
"minZ": -10,
"flags": [
{
"build": false
},
{
"open_chest": true
},
{
"open_doors": true
}
]
}
]
}
{
"home": "0,90,0,0,0",
"name": "some_team",
"friendlyFire": "true",
"members": [
"rbrick"
],
"managers": [
"Dawhn"
],
"leader": "SasukeGabe",
"claims": [
{
"maxX": 10,
"minX": -10,
"maxY": 256,
"minY": 0,
"maxZ": 10,
"minZ": -10,
"flags": [
{
"build": false
},
{
"open_chest": true
},
{
"open_doors": true
}
]
}
]
}
@rbrick
Copy link
Author

rbrick commented Oct 16, 2014

I feel the first one would be easier to load into memory. Then again the second one will allow for multiple claims(The first one should have something like "team_name" : { "claims" : [ {// information here. } ] } ) but I digress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment