Available Methods

MethodReturnsDescription
getGraveManager()GraveManagerReturns the runtime grave manager for deeper integrations.
getCurrencyHandler()CurrencyHandlerReturns the currency integration handler used by paid reclaim flows.
getLangManager()LangManagerReturns the language/message manager.
getGraveLogger()GraveLoggerReturns the grave audit/logger component.
getPlayerData(UUID playerUuid)PlayerDataReturns stored VGraves data for a player.
getGraves(UUID playerUuid)List<Grave>Returns all active graves for a player.
getGrave(UUID playerUuid, String graveId)GraveLooks up one grave by owner UUID and grave id.
hasGrave(UUID playerUuid, String graveId)booleanChecks whether the player has a grave with the given id.
getGraveCount(UUID playerUuid)intReturns the number of active graves owned by a player.
getTickets(UUID playerUuid)intReturns the player's current ticket balance.
getBuyUsage(UUID playerUuid)intReturns how many paid reclaim usages are tracked for the player.
getTicketUsage(UUID playerUuid)intReturns how many ticket reclaim usages are tracked for the player.
addTickets(UUID playerUuid, int amount)voidAdds grave tickets and fires the ticket-change flow.
removeTickets(UUID playerUuid, int amount)voidRemoves grave tickets and fires the ticket-change flow.
setTickets(UUID playerUuid, int amount)voidSets the player's grave ticket balance.
createGrave(Player player)GraveCreates a grave from the player's current death-related inventory state.
createGraveFromSnapshot(Player player, ItemStack[] storageContents, ItemStack[] armorContents, ItemStack offhandItem, int xp, List<ItemStack> dropFallback)GraveCreates a grave from a custom snapshot for external death handling.
claimWithTicket(UUID ownerUuid, String graveId, Player receiver)TicketClaimResultAttempts to reclaim a grave using a ticket.
claimWithCurrency(UUID ownerUuid, String graveId, Player receiver)PaidClaimResultAttempts to reclaim a grave using the configured currency flow.
precheckCurrencyClaim(UUID ownerUuid, String graveId, Player receiver)PaidClaimResultChecks whether a paid reclaim can proceed before claiming.
forceClaim(UUID ownerUuid, String graveId, Player receiver, boolean consumeGrave)booleanRuns an admin restore flow and optionally consumes the grave.
giveUp(UUID ownerUuid, String graveId, Player actor)booleanRuns the give-up flow for a grave.
removeGrave(UUID ownerUuid, String graveId)booleanDeletes a grave from the player's stored grave data.
isExceptionItem(ItemStack itemStack)booleanChecks whether an item is configured as an exception item.
shouldConsumeAdminSelfClaim()booleanReturns whether admin self-claims should consume the grave.
savePlayerData(UUID playerUuid)voidSaves one player's grave data.
saveAll()voidSaves all loaded grave data.
cleanupExpired()voidRuns expired-grave cleanup.

Related Events

  • GraveCreatedEvent
  • GraveClaimedEvent
  • GraveGivenUpEvent
  • GraveRemovedEvent
  • GraveExpiredEvent
  • GraveTicketsChangedEvent

Behavior Notes

  • Ticket methods run through the plugin flow and trigger the ticket-change event.
  • The snapshot grave creator is intended for plugins that handle custom death logic but still want VGraves storage.
  • Claim methods return flow-specific result objects so integrations can react to success or failure states.