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:
getDuelId(): Returns the uniqueUUIDof the duel match.getMode(): Returns the activeQueueModeteam-size mode (for exampleONE_V_ONE,TWO_V_TWO).getFightType(): ReturnsDuelFightType(for exampleONE_V_ONE,PARTY_SPLIT,PARTY_FFA).getArena(): Returns the Arena assigned to the match.getKit(): Returns the Kit layout applied to match players.getTeam1()/getTeam2(): Returns a list of playerUUIDs representing Team 1 and Team 2.getAliveTeam1()/getAliveTeam2(): Returns playerUUIDs still alive in the active round.getCurrentRound()/getMaxRounds(): Returns current round index and maximum round capacity.
Arena
Class: com.shyamstudio.shyamduels.arena.Arena
Represents a configured match environment:
getName(): Returns the case-insensitive name ID of the arena.getType(): Returns theArenaType:DUELorFFA.getStatus(): Returns the currentArenaStatus(for exampleAVAILABLE,IN_USE,REGENERATING).getOriginalName()/getTemplateName(): The original arena name / schematic template name (used for copied arenas).isCopy(): Returns true when the arena is a schematic copy of another arena.isBuildEnabled(): Returns true if the arena allows block placing/breaking.getSpawn1()/getSpawn2(): Spawn locations for players.getCorner1()/getCorner2(): The two boundary corner locations of the arena.getCenter(): Returns the center coordinate location of the arena boundaries.getFfaSpawns()/addFfaSpawn(Location): FFA spawn locations and registration.contains(Location)/clampInside(Location): Containment check and clamped-position helper.
Kit
Class: com.shyamstudio.shyamduels.kit.Kit
Represents a saved loadout template:
getName(): Returns the case-sensitive name ID of the kit.getDisplayName(): Returns the GUI display name of the kit.getInventory(): Returns theItemStack[]contents mapping inventory slots.getArmor(): Returns theItemStack[]array mapping armor layouts.getOffhand(): Returns the off-handItemStackof the kit.getEffects(): Returns the list ofPotionEffects applied when the kit is loaded.getBuildWhitelist(): Returns the list of materials whitelisted for block placing/breaking.isBuildEnabled()/isMatchStartPotionsEnabled()/isCraftingEnabled(): Kit-level toggles.getSaturation(): Saturation amount applied to players on start (0 to 20 scale).getQueueRounds(): The number of rounds used when the kit is played in the queue.
PlayerKit
Class: com.shyamstudio.shyamduels.kit.PlayerKit
Represents a player's edited (customized) version of a base kit, with its share metadata:
getPlayerUuid(): Owner'sUUID.getKitName(): Name of the base kit this edit belongs to.getInventory()/getArmor()/getOffhand(): The saved layout.getShareCode(): The unique share code for this edited kit, or null.getImportCount(): How many times other players have imported this kit.getCreatedAt()/getLastEdited(): Creation and last-edit timestamps (epoch millis).
PlayerStats
Class: com.shyamstudio.shyamduels.stats.PlayerStats
Represents cached player statistics:
getUuid(): Returns the player'sUUID.getElo(): Returns current Elo ranking values.getKills()/getDeaths(): Kills and deaths counts.getWins()/getLosses(): Wins and losses counts.getKillstreak()/getBestKillstreak(): Current streak and highest historical record.getWinstreak()/getBestWinstreak(): Current consecutive matchmaking victories and highest record.getKD(): Returns the kill/death ratio (returns kills when deaths is zero).getWL(): Returns the win/loss ratio (returns wins when losses is zero).getPlaytime(): Returns total tracked playtime in seconds.getPlaytimeHours(): Returns total tracked playtime rounded down to whole hours.getFormattedPlaytime(): Returns a human-readable playtime string (for example3h 24m).
KitStats
Class: com.shyamstudio.shyamduels.stats.KitStats
Represents cached per-player statistics for a specific kit loadout:
getElo(): Current Elo matchmaking rating for this kit (default 1000).getWins()/getLosses(): Match victories and defeats with this kit.getKills()/getDeaths(): Kills and deaths recorded using this kit.getKillstreak()/getBestKillstreak(): Current and all-time highest kill streaks with this kit.getWinstreak()/getBestWinstreak(): Current and all-time highest win streaks with this kit.getKD()/getWL(): Kill/Death and Win/Loss ratios formatted as decimals.getWinRate(): Win percentage with this kit.getGames(): Total matches played with this kit.
KitLeaderboardEntry
Class: com.shyamstudio.shyamduels.stats.KitLeaderboardEntry
Represents a ranked entry in a per-kit leaderboard query:
getPlayerUuid(): The player's uniqueUUID.getKitName(): The kit identifier for this leaderboard entry.getStats(): Returns the underlying KitStats data object.getElo()/getWins()/getLosses(): Direct getters for rating and match records.getKills()/getDeaths(): Direct getters for combat kills and deaths.getKillstreak()/getBestKillstreak()/getWinstreak()/getBestWinstreak(): Streak milestones.getKD()/getWL()/getWinRate()/getGames(): Computed ratio and match count metrics.
PlayerSettings
Class: com.shyamstudio.shyamduels.settings.PlayerSettings
Represents personal preference configuration options:
isScoreboard()/isTabList()/isNametags(): Visibility preference settings (returns boolean).isFriendRequests()/isDuelRequests(): Toggles indicating if the player is open to requests.isShareKits(): Whether the player has enabled "Share Edited Kits" (kit sharing).getWeatherPreference(): Personal weather overrides (Clear, Rain, Storm).getTimePreference(): Personal client-view time overrides (Day, Night).
Rank
Record: com.shyamstudio.shyamduels.stats.Rank
Represents an Elo-based competitive rank tier (defined under elo.ranks in the config):
id(): The rank identifier key.displayName(): Returns the display name of the rank.coloredName(): Returns the colored display name of the rank.minElo()/maxElo(): The inclusive Elo boundaries of the rank tier.lossMultiplier(): Elo loss multiplier applied to players in this tier.order(): Returns the sort order index (lower is a lower tier).
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:
getTeamSize(): Returns the number of players per team.getTotalPlayers(): Returns the total players in a match (team size × 2).getDisplay(): Returns the display label (for example1v1,2v2).getConfigKey(): Returns the config key used by this mode.isEnabled(FileConfiguration): Whether the mode is enabled in queue settings.fromTeamSize(int): Resolves a mode from its team size.
QueueKey
Class: com.shyamstudio.shyamduels.queue.QueueKey
A composite key identifying a single matchmaking queue (kit + mode):
getKitName(): Returns the kit name for this queue.getMode(): Returns the associated QueueMode.
Party
Class: com.shyamstudio.shyamduels.party.Party
Represents a group of players queued and playing together:
getPartyId(): Returns the uniqueUUIDof the party.getOwner(): Returns the party leader'sUUID.getMembers(): Returns an unmodifiableSet<UUID>of all party members.getSize(): Returns the current member count.getState(): Returns the currentPartyState(LOBBY,IN_QUEUE, orIN_DUEL).isInDuel(): Returns true when the party is currently in a duel.
CustomKit
Class: com.shyamstudio.shyamduels.customkits.data.CustomKit
Represents a player-built custom kit profile (available via customKits()):
getId(): Returns the kit's slot ID.getName(): Returns the player-assigned kit name.getHelmet(): Returns the helmetItemStackused as the kit icon.getSettings(): Returns theKitSettingsapplied to the kit.
KitShareManager.ShareRef
Record: com.shyamstudio.shyamduels.kit.KitShareManager.ShareRef
A resolved reference to a shared kit, returned by KitShareService.resolve(code):
ownerId(): The owning player'sUUID.type(): TheKitShareManager.KitType:EDITED(base-kit edit) orCUSTOM(player-built kit).kitName(): Kit name (used forEDITEDkits).kitId(): Kit slot ID (used forCUSTOMkits;-1for edited kits).
Player Snapshots
Immutable activity snapshots from PlayerService (no live Bukkit objects; safe to retain):
PlayerSnapshot(playerId, playerName, activity, duelId, partyId, arenaName, kitName, queues, tournamentParticipant, capturedAt)QueueSnapshot(kitName, mode, displayMode, teamSize)PlayerActivity:LOADING, LOBBY, PARTY, KIT_EDITOR, TOURNAMENT, QUEUED, FFA, DUEL, SPECTATING
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.
api.duel.DuelView(duelId, kitName, arenaName, fightType, state, ranked, tierTest, botMatch, currentRound, maxRounds, requiredWins, team1Wins, team2Wins, team1, team2, startedAt)withteamOf(uuid),opponentsOf(uuid),players().fightType:ONE_V_ONE,PARTY_VS_PARTY,PARTY_SPLIT,PARTY_FFA;state:STARTING,FIGHTING,ENDING,ENDED.api.kit.KitView(name, displayName, icon, inventory, armor, offhand, categoryId, rankedQueueEnabled, buildEnabled, craftingEnabled, queueRounds). Items are copies.api.stats.StatsView(playerId, kills, deaths, wins, losses, killstreak, bestKillstreak, winstreak, bestWinstreak, elo, rankId, playtimeSeconds)andapi.stats.KitStatsView(playerId, kitName, ...), both withgames(),kd(),winRate().api.party.PartyView(partyId, ownerId, members, mode, playMode, state, open, memberLimit)withsize().api.arena.ArenaView(name, type, status, worldName, allowedKits, buildEnabled, copy, templateName).status:AVAILABLE,IN_USE,REGENERATING,UNAVAILABLE,DISABLED.
Match History Models
Package com.shyamstudio.shyamduels.api.history (API 2.1). Immutable records returned by MatchHistoryService.
MatchRecord(matchId, startedAt, endedAt, kit, arena, matchType, ranked, fightType, team1Score, team2Score, winnerTeam, players): one finished match.matchTypeisqueue(ranked),unranked-queue,duel,unranked-duel,rematch,party-split,party-ffaand others;rankedis true for ranked queue matches and tier tests;winnerTeamis 1, 2 or 0 (draw or party free-for-all). Helpers:durationMillis(),player(uuid),opponentsOf(uuid),withoutInventories().MatchPlayerRecord: one player's side. Identity (playerId,name,team,outcome), Elo (eloChanged,eloBefore,eloAfter,eloChange()), tiers (tierTracked,tierRatingBefore/After,tierBefore/After,tierRatingChange()), combat (kills,deaths,hits,damageDealt,damageTakenin half-hearts), items used (totemsUsed,goldenApples,enderPearls,potionsUsed), final state (health,maxHealth,absorption,food) and the inventory (hasInventory(),inventoryDatain Paper item bytes, Base64 helper).MatchPage(matches, page, pageSize, hasNext): one page of a player's matches, newest first.MatchOutcome:WIN,LOSS,DRAW.MatchHistoryFilter:ALL,RANKED,UNRANKED.
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.
TierDefinition(index, id, name, color, rating, points): one configured tier.PlayerTier: a player's state in one kit:tier,tierName,peakTier,rating,wins,losses,testWins,testLosses,testEligible,lastMatchAt; helpersmatches()andisRanked().KitRanking: a kit board row:position,playerId,name,kit,tier,tierName,rating,wins,lossesand more.OverallRanking: an overall board row:position,playerId,name,points,overallTier,overallTierNameand the counted kits.
Extensions & API Metadata
ExtensionDescriptor(key, ownerPlugin, contractType, registeredAt)- seeExtensionService.registeredExtensions().ExtensionRegistration-key/owner/contract/isRegistered/unregister/close(AutoCloseable).ApiMetadata(apiVersion, pluginVersion, capabilities)+supports(cap);ApiVersion.CURRENT = 2.1.0; capabilities:bukkit-services, player-snapshots, extension-registry, duel-events, tournament-events, async-stats, country-flags, match-history, lifecycle-events, read-only-views, plustiers,practice,custom-kitsandkit-editorwhile those features are on.
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).
normalize(String): 2-32 chars, starts with letter,A-Z0-9_-, must exist in registry. Returns null for"USA"etc.normalizeIso(String): Strict 2-letter ISO only.PlayerCountryChangeEvent.Cause:SELECT|RESET|GEOIP|JOIN_RESOLVE