Data storage syntax

Data storage syntax

Each of listed below directories contains files named after player nicknames. Each file contains data about specific player.
Type of data in file is determined by file's parent directory (for example: accounts directory contais files with tokens data, etc.).

AreaGuard/accounts

This directory contais files with tokens data. The syntax is:

  1. Amount of tokens owned by player (int).

AreaGuard/areas

This directory contais files with areas data. The syntax is:

  1. Smaller X coordinate (int).
  2. Smaller Y coordinate (int).
  3. Smaller Z coordinate (int).
  4. Bigger X coordinate (int).
  5. Bigger Y coordinate (int).
  6. Bigger Z coordinate (int).
  7. Area name (String).
  8. Area owner name (String).
  9. Name of the world, area is defined in (String).
  10. First guest name (String).
  11. Second guest name (String).
    (...)
  12. Last guest name (String).
  13. #

The "#" sign on the end of guests list is necessary list terminator. Even when there is no guests in area, there have to be "#" sign after the area's world name.
If there is more than one area owned by player, each lines, beginning with smaller X coordinate and terminated by "#" sign, describes one of such areas.

AreaGuard/flags

This directory contais files with flags data. The syntax is:

  1. Area name (String).
  2. If non-owner's (neither guest or operator) mechanisms usage (this refers also to Minecarts usage) in area is allowed (0 or 1, 0 means "no", 1 means "yes").
  3. If PVP in area is allowed (0 or 1, 0 means "no", 1 means "yes").

If there is more than one area owned by player, each three lines (beginning with area name) describes one of such areas.


Comments

Posts Quoted:
Reply
Clear All Quotes