Data Models

Detailed breakdowns of the core entities and data classes retrieved through the API.

Duel

Class: com.shyamstudio.shyamduels.duel.Duel
Represents an active matchmaking or challenged combat instance between players or teams:

Arena

Class: com.shyamstudio.shyamduels.arena.Arena
Represents a configured match environment:

Kit

Class: com.shyamstudio.shyamduels.kit.Kit
Represents a saved loadout template:

PlayerKit

Class: com.shyamstudio.shyamduels.kit.PlayerKit
Represents a player's edited (customized) version of a base kit, with its share metadata:

PlayerStats

Class: com.shyamstudio.shyamduels.stats.PlayerStats
Represents cached player statistics:

KitStats

Class: com.shyamstudio.shyamduels.stats.KitStats
Represents cached per-player statistics for a specific kit loadout:

KitLeaderboardEntry

Class: com.shyamstudio.shyamduels.stats.KitLeaderboardEntry
Represents a ranked entry in a per-kit leaderboard query:

PlayerSettings

Class: com.shyamstudio.shyamduels.settings.PlayerSettings
Represents personal preference configuration options:

Rank

Record: com.shyamstudio.shyamduels.stats.Rank
Represents an Elo-based competitive rank tier (defined under elo.ranks in the config):

Static helpers: getRankForElo(int), getNextRank(Rank), getEloProgress(int), getEloNeeded(int), getProgressBar(int), getEloPercent(int), and getRanks().

QueueMode

Enum: com.shyamstudio.shyamduels.queue.QueueMode
Represents a matchmaking team-size mode: ONE_V_ONE, TWO_V_TWO, THREE_V_THREE, FOUR_V_FOUR:

QueueKey

Class: com.shyamstudio.shyamduels.queue.QueueKey
A composite key identifying a single matchmaking queue (kit + mode):

Party

Class: com.shyamstudio.shyamduels.party.Party
Represents a group of players queued and playing together:

CustomKit

Class: com.shyamstudio.shyamduels.customkits.data.CustomKit
Represents a player-built custom kit profile (available via customKits()):

KitShareManager.ShareRef

Record: com.shyamstudio.shyamduels.kit.KitShareManager.ShareRef
A resolved reference to a shared kit, returned by KitShareService.resolve(code):

Player Snapshots

Immutable activity snapshots from PlayerService (no live Bukkit objects; safe to retain):

Read-only Views (API 2.1)

Immutable copies taken when you ask for them. Unlike the live objects (Duel, Kit, Party, Arena, PlayerStats), they are safe to keep, to read from any thread and to pass to other plugins, and changing them cannot affect the plugin. Take a new one for fresh values.

Match History Models

Package com.shyamstudio.shyamduels.api.history (API 2.1). Immutable records returned by MatchHistoryService.

Tier Models

Package com.shyamstudio.shyamduels.api.tier (API 2.1). Immutable records returned by TiersService. Tier indexes go from 0 (lowest, LT5) up; -1 means unranked.

Extensions & API Metadata

Country Flag Data

Country codes are uppercase ISO 3166-1 alpha-2 strings (for example IN, US, GB). The internal registry (CountryFlagRegistry) exposes exactly 224 textures via CountryService.getAllTextures() / getAllCountryCodes(). The registry-level getExtraTextures() currently returns empty (no synthetic entries enabled). Use CountryService.UNKNOWN = "UNKNOWN" as the sentinel for absent/unknown; the API getters return null (not UNKNOWN) for unknown/hidden. Display name lookup and input resolution are handled by CountryNames via getDisplayName/resolveIsoCode (accepts "India", "IN", "United_States", "United" prefix).