GS2-Guild Master Data Reference

Reference for the master data format and the models to be imported

Master Data Format

{
  "version": "2024-04-25",
  "guildModels": [
    {
      "name": "[string]Guild Model name",
      "metadata": "[string?]Metadata",
      "defaultMaximumMemberCount": "[int]Default Maximum Member Count",
      "maximumMemberCount": "[int]Maximum Member Count",
      "inactivityPeriodDays": "[int]Inactivity Period Days",
      "roles": [
        {
          "name": "[string]Role Model name",
          "metadata": "[string?]Metadata",
          "policyDocument": "[string]Policy Document"
        }
      ],
      "guildMasterRole": "[string]Guild Master Role Name",
      "guildMemberDefaultRole": "[string]Default Member Role Name",
      "rejoinCoolTimeMinutes": "[int]Rejoin Cool Time (Minutes)",
      "maxConcurrentJoinGuilds": "[int?]Maximum Concurrent Guild Memberships",
      "maxConcurrentGuildMasterCount": "[int?]Maximum Concurrent Guild Master Count"
    }
  ]
}
TypeConditionRequiredDefaultValue LimitsDescription
versionstring
2024-04-25Format version of master data
guildModelsList<GuildModel>~ 100 itemsGuild Model
A Guild Model is an entity that sets the maximum number of people who can join the guild and the permission settings for each position within the guild.

Model

GuildModel

Guild Model

A Guild Model is an entity that sets the maximum number of people who can join the guild and the permission settings for each position within the guild.

TypeConditionRequiredDefaultValue LimitsDescription
guildModelIdstring
*
~ 1024 charsGuild Model GRN
* Set automatically by the server
namestring
~ 128 charsGuild Model name
Guild Model-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.).
metadatastring~ 2048 charsMetadata
Arbitrary values can be set in the metadata.
Since they do not affect GS2’s behavior, they can be used to store information used in the game.
defaultMaximumMemberCountint
1 ~ 2147483646Default Maximum Member Count
The initial maximum number of members allowed when a new guild is created. This value is used as the starting currentMaximumMemberCount for new guilds. Can be increased later up to the maximumMemberCount limit through guild operations or acquire actions.
maximumMemberCountint
1 ~ 2147483646Maximum Member Count
The absolute upper limit for the number of members a guild can have. The guild’s currentMaximumMemberCount cannot exceed this value. This serves as a hard cap to prevent guilds from growing beyond the intended size.
inactivityPeriodDaysint71 ~ 365Inactivity Period Days
The number of days of guild master inactivity after which a new guild master is automatically selected from the remaining guild members. This prevents guilds from becoming unmanageable when the guild master stops playing.
rolesList<RoleModel>
1 ~ 10 itemsList of Role Models
The list of role definitions available within guilds of this type. Must include at least the roles referenced by guildMasterRole and guildMemberDefaultRole. Each role defines a unique set of permissions via a policy document. Up to 10 roles can be defined.
guildMasterRolestring
~ 128 charsGuild Master Role Name
The name of the role assigned to guild masters. Must reference a role defined in the roles list. Guild masters typically have full permissions to manage the guild, including approving join requests, expelling members, changing roles, and updating guild settings.
guildMemberDefaultRolestring
~ 128 charsDefault Member Role Name
The name of the role automatically assigned to new guild members when they join. Must reference a role defined in the roles list. This is the baseline permission set for regular members before any role changes by the guild master.
rejoinCoolTimeMinutesint00 ~ 2147483646Rejoin Cool Time (Minutes)
The cooldown period in minutes before a user can rejoin a guild after leaving. Set to 0 to allow immediate rejoining. This prevents abuse patterns where users repeatedly join and leave guilds.
maxConcurrentJoinGuildsint1 ~ 10Maximum Concurrent Guild Memberships
The maximum number of guilds of this type that a user can be a member of simultaneously. Allows for designs where players can belong to multiple guilds at the same time (e.g., a combat guild and a social guild). The value ranges from 1 to 10.
maxConcurrentGuildMasterCountint1 ~ 100Maximum Concurrent Guild Master Count
The maximum number of guild masters that can exist in a single guild at the same time. Allows for co-leadership designs where multiple players share guild master responsibilities and permissions. The value ranges from 1 to 100.

RoleModel

Role Model

The role model defines the role within the guild and sets the permissions for each role.

TypeConditionRequiredDefaultValue LimitsDescription
namestring
~ 128 charsRole Model name
Role Model-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.).
metadatastring~ 2048 charsMetadata
Arbitrary values can be set in the metadata.
Since they do not affect GS2’s behavior, they can be used to store information used in the game.
policyDocumentstring
~ 10240 charsPolicy Document
A JSON-formatted policy document that defines the permissions for this role. Specifies which guild operations (such as accepting/rejecting join requests, expelling members, updating guild info, changing member roles) are allowed or denied for members assigned to this role.