Index
All Classes and Interfaces|All Packages
A
- addAvailableSeconds(double) - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Adds or subtracts seconds from the player's available time.
B
- BiomeNotifier - Class in com.storytimeproductions.stweaks.listeners
-
BiomeNotifier is a listener that notifies players via the action bar when they enter a new biome.
- BiomeNotifier(Plugin, BiomeTrackerManager) - Constructor for class com.storytimeproductions.stweaks.listeners.BiomeNotifier
-
Constructs a new BiomeNotifier with a reference to the main plugin instance.
- BiomeTrackerCommand - Class in com.storytimeproductions.stweaks.commands
-
Handles the `/biometracker` command for opening a GUI that shows the player's discovered biomes.
- BiomeTrackerCommand(BiomeTrackerManager, JavaPlugin) - Constructor for class com.storytimeproductions.stweaks.commands.BiomeTrackerCommand
-
Constructs a BiomeTrackerCommand instance.
- BiomeTrackerManager - Class in com.storytimeproductions.stweaks.util
-
Manages tracking of biomes discovered by players.
- BiomeTrackerManager(DbManager, JavaPlugin) - Constructor for class com.storytimeproductions.stweaks.util.BiomeTrackerManager
-
Constructs a new BiomeTrackerManager instance.
- BossBarManager - Class in com.storytimeproductions.stweaks.util
-
Manages Boss Bars that show each player's remaining playtime progress.
- BossBarManager() - Constructor for class com.storytimeproductions.stweaks.util.BossBarManager
- breakdownSeconds(double) - Static method in class com.storytimeproductions.stweaks.util.TimeUtils
-
Breaks down a total number of seconds into hours, minutes, and seconds.
C
- com.storytimeproductions.models - package com.storytimeproductions.models
-
This package contains the model classes for the Stweaks plugin.
- com.storytimeproductions.stweaks - package com.storytimeproductions.stweaks
-
This package contains the main classes for the Stweaks plugin.
- com.storytimeproductions.stweaks.commands - package com.storytimeproductions.stweaks.commands
-
This package contains the command classes for the STweaks application.
- com.storytimeproductions.stweaks.config - package com.storytimeproductions.stweaks.config
-
This package contains the configuration classes for the STweaks application.
- com.storytimeproductions.stweaks.events - package com.storytimeproductions.stweaks.events
-
This package contains the event classes used in the plugin.
- com.storytimeproductions.stweaks.listeners - package com.storytimeproductions.stweaks.listeners
-
This package contains the event listeners for the STweaks application.
- com.storytimeproductions.stweaks.playtime - package com.storytimeproductions.stweaks.playtime
-
This package contains the Playtime feature used for the Stracker module for the plugin.
- com.storytimeproductions.stweaks.util - package com.storytimeproductions.stweaks.util
-
This package contains utility classes for the Stweaks plugin.
- computeGlobalSocialMultiplier() - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Computes the social multiplier as the socialMultiplier times the weighted average of all party sizes, with more weight attributed to larger parties.
- connect() - Method in class com.storytimeproductions.stweaks.util.DbManager
-
Establishes a connection to the SQLite database and creates the playtime table if it doesn't exist.
- Cosmetic - Class in com.storytimeproductions.stweaks.util
-
Represents a cosmetic item with an ID, item model, display name, lore, and crafting recipe.
- Cosmetic(String, String, String, List<String>, Material[][]) - Constructor for class com.storytimeproductions.stweaks.util.Cosmetic
-
Constructs a new Cosmetic.
- CosmeticsListener - Class in com.storytimeproductions.stweaks.listeners
-
Listener for handling clicks in the Cosmetics Menu GUI.
- CosmeticsListener() - Constructor for class com.storytimeproductions.stweaks.listeners.CosmeticsListener
- CosmeticsManager - Class in com.storytimeproductions.stweaks.util
-
Manages the loading and retrieval of cosmetic items from configuration.
- CosmeticsManager(JavaPlugin) - Constructor for class com.storytimeproductions.stweaks.util.CosmeticsManager
-
Constructs a new CosmeticsManager and loads cosmetics from configuration.
- CosmeticsMenuCommand - Class in com.storytimeproductions.stweaks.commands
-
Command executor and menu handler for the Cosmetics GUI.
- CosmeticsMenuCommand(CosmeticsManager) - Constructor for class com.storytimeproductions.stweaks.commands.CosmeticsMenuCommand
-
Constructs a new CosmeticsMenuCommand.
- CowSkinnerListener - Class in com.storytimeproductions.stweaks.listeners
-
Handles custom crafting and interaction behavior for the Cow Skinner tool.
- CowSkinnerListener() - Constructor for class com.storytimeproductions.stweaks.listeners.CowSkinnerListener
D
- DbManager - Class in com.storytimeproductions.stweaks.util
-
Manages connection and setup for the SQLite database used to store player playtime.
- DbManager() - Constructor for class com.storytimeproductions.stweaks.util.DbManager
- disconnect() - Method in class com.storytimeproductions.stweaks.util.DbManager
-
Closes the database connection if it is open.
E
- EventManager - Class in com.storytimeproductions.stweaks.events
-
Manages events related to the plugin.
- EventManager() - Constructor for class com.storytimeproductions.stweaks.events.EventManager
F
- FbiDiscListener - Class in com.storytimeproductions.stweaks.listeners
-
Handles behavior when the custom FBI Disc item (based on a cookie) is consumed.
- FbiDiscListener() - Constructor for class com.storytimeproductions.stweaks.listeners.FbiDiscListener
- formatBiomeName(String) - Static method in class com.storytimeproductions.stweaks.util.BiomeTrackerManager
-
Formats the biome key into a human-readable name by capitalizing the first letter of each word and replacing underscores with spaces.
G
- getAfkSince() - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Gets the time in milliseconds since the player was last marked as AFK.
- getAfkThresholdSeconds(UUID) - Static method in class com.storytimeproductions.stweaks.config.SettingsManager
-
Retrieves the AFK threshold in seconds for a specific player.
- getAllCosmetics() - Static method in class com.storytimeproductions.stweaks.util.CosmeticsManager
-
Gets a list of all loaded cosmetics.
- getAllPets() - Method in class com.storytimeproductions.stweaks.util.PetsManager
- getAvailableMinutes() - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Retrieves the number of full minutes available.
- getAvailableQuestsFor(UUID) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Returns a list of quests available to a specific player.
- getAvailableSeconds() - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Retrieves the total available seconds for the player.
- getBankedTickets() - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Gets the number of banked 5-minute tickets for the player.
- getBaseMultiplier() - Static method in class com.storytimeproductions.stweaks.config.SettingsManager
-
Retrieves the base multiplier for all players.
- getBaseMultiplier() - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
- getBurpSounds() - Method in class com.storytimeproductions.models.Pet
-
Returns the list of sound effect names this pet may randomly play.
- getCompletedPlayers(Quest) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Retrieves a list of players who have completed a specific quest.
- getCompletedQuestCount(UUID) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Returns the number of quests the player has completed.
- getConnection() - Method in class com.storytimeproductions.stweaks.util.DbManager
-
Gets the current database connection.
- getCosmetic(String) - Static method in class com.storytimeproductions.stweaks.util.CosmeticsManager
-
Gets a cosmetic by its unique identifier.
- getCosmeticById(String) - Static method in class com.storytimeproductions.stweaks.util.CosmeticsManager
-
Gets a cosmetic by its unique identifier.
- getData(UUID) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Retrieves the playtime data for a specific player.
- getDeadline() - Method in class com.storytimeproductions.models.Quest
-
Gets the optional deadline for the quest.
- getDiscoveredBiomes(UUID) - Method in class com.storytimeproductions.stweaks.util.BiomeTrackerManager
-
Retrieves a set of biomes that the player with the given UUID has discovered.
- getDisplayableQuestIdsFor(UUID) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Returns a list of quest IDs that are visible to the given player.
- getDisplayName() - Method in class com.storytimeproductions.stweaks.util.Cosmetic
-
Gets the display name of the cosmetic.
- getFood() - Method in class com.storytimeproductions.models.Pet
-
Returns the food item required for the pet's perk to activate.
- getIcon() - Method in class com.storytimeproductions.models.Quest
-
Gets the icon representing the quest in the GUI.
- getId() - Method in class com.storytimeproductions.models.Pet
-
Returns the unique identifier of the pet.
- getId() - Method in class com.storytimeproductions.models.Quest
-
Gets the unique identifier of the quest.
- getId() - Method in class com.storytimeproductions.stweaks.util.Cosmetic
-
Gets the unique identifier for this cosmetic.
- getInstance() - Static method in class com.storytimeproductions.stweaks.Stweaks
-
Gets the instance of the Stweaks plugin.
- getItemModel() - Method in class com.storytimeproductions.stweaks.util.Cosmetic
-
Gets the item model identifier.
- getItemRequirements() - Method in class com.storytimeproductions.models.Quest
-
Gets the list of item requirements.
- getLastHourChecked() - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Gets the last hour checked for daily playtime reset.
- getLore() - Method in class com.storytimeproductions.models.Quest
-
Gets the lore or description of the quest.
- getLore() - Method in class com.storytimeproductions.stweaks.util.Cosmetic
-
Gets the lore (description) of the cosmetic.
- getMinutes(UUID) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Retrieves the remaining time in minutes for a player.
- getName() - Method in class com.storytimeproductions.models.Quest
-
Gets the display name of the quest.
- getOpenQuestCount(UUID) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Returns the number of open quests available to the specified player by username.
- getPerk() - Method in class com.storytimeproductions.models.Pet
-
Returns the perk string that defines what the pet does.
- getPetById(String) - Method in class com.storytimeproductions.stweaks.util.PetsManager
-
Retrieves a Pet by its ID.
- getPetByItem(ItemStack) - Method in class com.storytimeproductions.stweaks.util.PetsManager
-
Returns the Pet corresponding to the given item if it has a hotbar_pets model, or null otherwise.
- getPlaytime(UUID) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Gets the total available time in seconds for a player.
- getQuestById(String) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Retrieves a quest by its unique identifier.
- getQuestByName(String) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Retrieves a quest by its name.
- getQuotes() - Method in class com.storytimeproductions.models.Pet
-
Returns the list of quotes the pet may say at random intervals.
- getRecipe() - Method in class com.storytimeproductions.models.Pet
-
Returns the crafting recipe as a 3x3 matrix of materials.
- getRecipe() - Method in class com.storytimeproductions.stweaks.util.Cosmetic
-
Gets the crafting recipe for the cosmetic.
- getRequiredMinutes(UUID) - Static method in class com.storytimeproductions.stweaks.config.SettingsManager
-
Retrieves the required playtime for a specific player.
- getRequiredPlayers() - Method in class com.storytimeproductions.models.Quest
-
Gets the list of players required to complete this quest.
- getRewards() - Method in class com.storytimeproductions.models.Quest
-
Gets the list of rewards for completing the quest.
- getSeconds(UUID) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Retrieves the remaining time in seconds for a player.
- getSocialDistance() - Static method in class com.storytimeproductions.stweaks.config.SettingsManager
-
Retrieves the social distance for all players.
- getSocialDistance() - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
- getSocialMultiplier() - Static method in class com.storytimeproductions.stweaks.config.SettingsManager
-
Retrieves the social multiplier for all players.
- getSocialMultiplier() - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
- getStatRequirements() - Method in class com.storytimeproductions.models.Quest
-
Gets the list of stat requirements.
- getSubtitle() - Method in class com.storytimeproductions.models.Pet
-
Returns the subtitle or description of the pet.
- getTimeLeft(UUID) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Gets the total remaining time for a player as a
Duration
. - getTodayMultiplier() - Static method in class com.storytimeproductions.stweaks.util.TimeUtils
-
Retrieves the multiplier for the current day.
- getTotalMultiplier() - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Computes the total multiplier for a player.
- getWeekendMultiplier() - Static method in class com.storytimeproductions.stweaks.config.SettingsManager
-
Retrieves the global weekend multiplier for all players.
- getWeekendMultiplier() - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
- giveRewards(Player, Quest) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Gives the rewards to the player for completing a specific quest.
H
- hasRequiredItems(Player, Quest) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Checks if the player has the required items for a specific quest.
- hasRequiredStats(Player, Quest) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Checks if the player has met all required statistics for a specific quest.
I
- IllegalWaterListener - Class in com.storytimeproductions.stweaks.listeners
-
Handles the placement and interaction with the custom Illegal Water item.
- IllegalWaterListener(JavaPlugin) - Constructor for class com.storytimeproductions.stweaks.listeners.IllegalWaterListener
-
Constructor for the IllegalWaterListener class.
- init(JavaPlugin) - Static method in class com.storytimeproductions.stweaks.events.EventManager
-
Initializes the event manager for the plugin.
- init(JavaPlugin) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Initializes the PlaytimeTracker and starts periodic updates for all online players.
- init(JavaPlugin) - Static method in class com.storytimeproductions.stweaks.util.BossBarManager
-
Initializes the BossBarManager and starts periodic updates for all online players.
- isAfk() - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Checks if the player is currently marked as AFK.
- isAvailableTo(UUID) - Method in class com.storytimeproductions.models.Quest
-
Checks whether a specific player is eligible to undertake the quest.
- isDefaultQuest() - Method in class com.storytimeproductions.models.Quest
-
Determines if the quest is available to all players (i.e., not limited to specific players).
- isExpired() - Method in class com.storytimeproductions.models.Quest
-
Checks whether the quest has expired based on the current date and time.
- isKickOnAfkTimeout() - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Checks if the player should be kicked on AFK timeout.
- isQuestCompleted(UUID, String) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Checks if a quest is completed for a specific player.
- isWeekend() - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Checks if it is currently the weekend (Saturday or Sunday) in Eastern Time.
L
- LebronArmorListener - Class in com.storytimeproductions.stweaks.listeners
-
Listener that handles applying and restoring the "Lebron" skin based on whether a player is wearing a full set of custom Lebron armor.
- LebronArmorListener(Stweaks) - Constructor for class com.storytimeproductions.stweaks.listeners.LebronArmorListener
-
Constructs the listener with the given plugin reference.
- load(JavaPlugin) - Static method in class com.storytimeproductions.stweaks.config.SettingsManager
-
Loads the plugin's configuration file.
- loadCompletedQuestsFromDb() - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Loads the mapping of players to completed quests from the database.
- loadCosmetics() - Method in class com.storytimeproductions.stweaks.util.CosmeticsManager
-
Loads all cosmetics from the configuration file into memory.
- loadFromDatabase(Connection) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Loads player playtime data from the SQLite database into memory.
- loadPets() - Method in class com.storytimeproductions.stweaks.util.PetsManager
-
Loads pets from the pets.yml configuration file.
- loadQuestsFromYaml() - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Loads all quest definitions from the quests.yml configuration file.
M
- markBiomeDiscovered(UUID, String) - Method in class com.storytimeproductions.stweaks.util.BiomeTrackerManager
-
Marks a biome as discovered for the player with the given UUID.
- markQuestCompleted(UUID, String) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Marks a quest as completed for a given player and persists the change in the database.
O
- onArmorChange(PlayerArmorChangeEvent) - Method in class com.storytimeproductions.stweaks.listeners.LebronArmorListener
-
Handles when a player changes armor.
- onCommand(CommandSender, Command, String, String[]) - Method in class com.storytimeproductions.stweaks.commands.BiomeTrackerCommand
-
Handles the `/biometracker` command, opening a GUI that displays biomes the player has discovered and those they haven't, using different colors for each.
- onCommand(CommandSender, Command, String, String[]) - Method in class com.storytimeproductions.stweaks.commands.CosmeticsMenuCommand
-
Handles the /cosmetics command, opening the menu or reloading cosmetics.
- onCommand(CommandSender, Command, String, String[]) - Method in class com.storytimeproductions.stweaks.commands.PetsMenuCommand
-
Executes the command to open the pets menu or reload the configuration.
- onCommand(CommandSender, Command, String, String[]) - Method in class com.storytimeproductions.stweaks.commands.QuestMenuCommand
-
Executes the /quests command.
- onCommand(CommandSender, Command, String, String[]) - Method in class com.storytimeproductions.stweaks.commands.StCasinoCommand
-
Executes the /casino command.
- onCommand(CommandSender, Command, String, String[]) - Method in class com.storytimeproductions.stweaks.commands.StLobbyCommand
-
Handles the /lobby command.
- onCommand(CommandSender, Command, String, String[]) - Method in class com.storytimeproductions.stweaks.commands.StSpawnCommand
-
Executes the /spawn command.
- onCommand(CommandSender, Command, String, String[]) - Method in class com.storytimeproductions.stweaks.commands.StStatusCommand
- onCowRightClick(PlayerInteractEntityEvent) - Method in class com.storytimeproductions.stweaks.listeners.CowSkinnerListener
-
Handles the event when a player right-clicks an entity.
- onDisable() - Method in class com.storytimeproductions.stweaks.Stweaks
-
Called when the plugin is disabled.
- onEnable() - Method in class com.storytimeproductions.stweaks.Stweaks
-
Called when the plugin is enabled.
- onFbiDiscEaten(PlayerItemConsumeEvent) - Method in class com.storytimeproductions.stweaks.listeners.FbiDiscListener
-
Called when a player consumes any item.
- onInventoryClick(InventoryClickEvent) - Method in class com.storytimeproductions.stweaks.listeners.BiomeNotifier
-
Handles the inventory click event for pagination in the Biome Tracker GUI.
- onInventoryClick(InventoryClickEvent) - Method in class com.storytimeproductions.stweaks.listeners.CosmeticsListener
-
Handles inventory click events for the Cosmetics Menu.
- onInventoryClick(InventoryClickEvent) - Method in class com.storytimeproductions.stweaks.listeners.PetsMenuListener
-
Event handler that listens for clicks in inventories.
- onInventoryClick(InventoryClickEvent) - Method in class com.storytimeproductions.stweaks.listeners.PlayerActivityListener
-
Prevents users from moving items in the "Your Playtime Status" inventory.
- onInventoryClick(InventoryClickEvent) - Method in class com.storytimeproductions.stweaks.listeners.QuestMenuListener
-
Handles click events inside custom quest-related inventories.
- onPlaceIllegalWater(PlayerInteractEvent) - Method in class com.storytimeproductions.stweaks.listeners.IllegalWaterListener
-
Called when a player interacts with a block.
- onPlayerJoin(PlayerJoinEvent) - Method in class com.storytimeproductions.stweaks.listeners.PlayerActivityListener
-
Handles the player join event.
- onPlayerMove(PlayerMoveEvent) - Method in class com.storytimeproductions.stweaks.listeners.BiomeNotifier
-
Event handler for player movement.
- onPlayerMove(PlayerMoveEvent) - Method in class com.storytimeproductions.stweaks.listeners.PlayerActivityListener
-
Handles the player movement event.
- onPlayerQuit(PlayerQuitEvent) - Method in class com.storytimeproductions.stweaks.listeners.PlayerActivityListener
-
Handles the player quit event.
- openCosmeticView(Player, Cosmetic, int) - Static method in class com.storytimeproductions.stweaks.commands.CosmeticsMenuCommand
-
Opens a detailed view of a specific cosmetic for the player.
- openMainMenu(Player, int) - Static method in class com.storytimeproductions.stweaks.commands.CosmeticsMenuCommand
-
Opens the main cosmetics menu for the player at the specified page.
- openMainPetsMenu(Player, int) - Method in class com.storytimeproductions.stweaks.commands.PetsMenuCommand
-
Opens the main pets menu for the player with pagination.
- openPetView(Player, Pet, int) - Method in class com.storytimeproductions.stweaks.commands.PetsMenuCommand
-
Opens the detailed pet view menu for a specific pet.
- openPlayerManageInventory(Player, Player, Plugin) - Static method in class com.storytimeproductions.stweaks.commands.StStatusCommand
-
Opens a 27-slot inventory for the player to manage another player's playtime.
- openQuestViewMenu(Player, Quest, int) - Method in class com.storytimeproductions.stweaks.commands.QuestMenuCommand
-
Opens a detailed view of a specific quest for the player.
P
- Pet - Class in com.storytimeproductions.models
-
Represents a custom pet in the plugin, which includes metadata such as a subtitle, special perk behavior, sound effects, quotes, required food, and a crafting recipe.
- Pet(String, String, String, List<String>, List<String>, Material, List<List<Material>>) - Constructor for class com.storytimeproductions.models.Pet
-
Constructs a new Pet object with the provided attributes.
- PetsListener - Class in com.storytimeproductions.stweaks.listeners
-
Listener that manages pet activity, hunger, and perks for players.
- PetsListener(JavaPlugin, PetsManager) - Constructor for class com.storytimeproductions.stweaks.listeners.PetsListener
-
Constructs the PetsListener and starts the periodic pet action task.
- PetsManager - Class in com.storytimeproductions.stweaks.util
-
Manages the loading and retrieval of pets from the pets.yml configuration file.
- PetsManager(JavaPlugin) - Constructor for class com.storytimeproductions.stweaks.util.PetsManager
-
Constructs a PetsManager instance.
- PetsMenuCommand - Class in com.storytimeproductions.stweaks.commands
-
Command handler for the pets menu.
- PetsMenuCommand(JavaPlugin, PetsManager) - Constructor for class com.storytimeproductions.stweaks.commands.PetsMenuCommand
-
Constructs the PetsMenuCommand.
- PetsMenuListener - Class in com.storytimeproductions.stweaks.listeners
-
Handles interactions with the pet-related GUIs: - The main pets menu that lists all available pets.
- PetsMenuListener(Plugin, PetsManager, PetsMenuCommand) - Constructor for class com.storytimeproductions.stweaks.listeners.PetsMenuListener
-
Constructs the PetsMenuListener.
- PlayerActivityListener - Class in com.storytimeproductions.stweaks.listeners
-
Listens for player movement and connection events to track activity and manage UI elements.
- PlayerActivityListener(JavaPlugin) - Constructor for class com.storytimeproductions.stweaks.listeners.PlayerActivityListener
-
Constructs a new
PlayerActivityListener
and starts a repeating task to check AFK statuses. - PlaytimeData - Class in com.storytimeproductions.stweaks.playtime
-
Represents the playtime data for a player.
- PlaytimeData() - Constructor for class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Constructs a PlaytimeData object with zero available seconds and not AFK.
- PlaytimeData(double) - Constructor for class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Constructs a PlaytimeData object with a predefined number of available seconds.
- playtimeMap - Static variable in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
- PlaytimeTracker - Class in com.storytimeproductions.stweaks.playtime
-
Manages and tracks the playtime of players on the server.
- PlaytimeTracker() - Constructor for class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
- previewPet(Player, Pet) - Method in class com.storytimeproductions.stweaks.commands.PetsMenuCommand
-
Previews a pet by playing a random sound and showing a random quote.
Q
- Quest - Class in com.storytimeproductions.models
-
Represents a quest that a player can complete in the game.
- Quest(String, String, String, List<String>, List<String>, List<String>, List<UUID>, LocalDateTime, Material) - Constructor for class com.storytimeproductions.models.Quest
-
Constructs a new Quest object with the specified parameters.
- QuestMenuCommand - Class in com.storytimeproductions.stweaks.commands
-
Handles the "/questmenu" command to open a graphical quest menu interface for players.
- QuestMenuCommand(QuestsManager) - Constructor for class com.storytimeproductions.stweaks.commands.QuestMenuCommand
-
Constructs the command executor with a reference to the QuestsManager.
- QuestMenuListener - Class in com.storytimeproductions.stweaks.listeners
-
QuestMenuListener handles player interactions within custom quest-related GUIs, including the Quest Menu (listing quests with pagination) and the Quest View (detailed view of a selected quest).
- QuestMenuListener(Plugin, QuestsManager, QuestMenuCommand) - Constructor for class com.storytimeproductions.stweaks.listeners.QuestMenuListener
-
Constructs a new QuestMenuListener.
- QuestsManager - Class in com.storytimeproductions.stweaks.util
-
Manages the lifecycle of quests, including loading from YAML, tracking completed quests per player, and querying quest availability.
- QuestsManager(DbManager, JavaPlugin) - Constructor for class com.storytimeproductions.stweaks.util.QuestsManager
-
Constructs a new QuestsManager with the given database manager and plugin instance.
R
- registerListener(Listener) - Method in class com.storytimeproductions.stweaks.Stweaks
-
Registers a Bukkit event listener for this plugin.
- reload(JavaPlugin) - Static method in class com.storytimeproductions.stweaks.config.SettingsManager
-
Reloads the plugin's configuration file.
- reloadQuests() - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Reloads all quests from the YAML file and refreshes the completed quests mapping from the database.
- removeBossBar(Player) - Static method in class com.storytimeproductions.stweaks.util.BossBarManager
-
Removes a player's boss bar (e.g., on logout).
- reset() - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Resets the available seconds to zero.
- resetPlaytime(UUID) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Resets the recorded available seconds for a specific player.
S
- saveToDatabase(Connection) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Saves the in-memory playtime data to the SQLite database.
- sendPlaytimeWarningTitle(Player, int) - Static method in class com.storytimeproductions.stweaks.util.TablistManager
-
Sends a warning title to the player when their playtime is about to end, based on the time remaining.
- sendRandomPetMessage(Player) - Method in class com.storytimeproductions.models.Pet
-
Sends a random quote as a message and plays a random sound from burpSounds for the player.
- setAfk(boolean) - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Sets the player's AFK status.
- setAfk(UUID, boolean) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Sets the AFK status for a specific player.
- setAvailableSeconds(double) - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Sets the total available seconds for the player.
- setBankedTickets(int) - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Sets the number of banked 5-minute tickets for the player.
- setKickOnAfkTimeout(boolean) - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Sets whether the player should be kicked on AFK timeout.
- setLastHourChecked(Integer) - Method in class com.storytimeproductions.stweaks.playtime.PlaytimeData
-
Sets the last hour checked for daily playtime reset.
- setPlaytime(UUID, PlaytimeData) - Static method in class com.storytimeproductions.stweaks.playtime.PlaytimeTracker
-
Sets or replaces the current playtime data for a player.
- SettingsManager - Class in com.storytimeproductions.stweaks.config
-
A utility class for managing player-specific configuration settings.
- SettingsManager() - Constructor for class com.storytimeproductions.stweaks.config.SettingsManager
- StCasinoCommand - Class in com.storytimeproductions.stweaks.commands
-
Handles the /casino command, teleporting the player to the "casino" world using Multiverse.
- StCasinoCommand(FileConfiguration) - Constructor for class com.storytimeproductions.stweaks.commands.StCasinoCommand
-
Constructs a new StCasinoCommand with access to the plugin's configuration.
- StLobbyCommand - Class in com.storytimeproductions.stweaks.commands
-
Command that teleports a player to the lobby world and then to specific coordinates.
- StLobbyCommand(FileConfiguration) - Constructor for class com.storytimeproductions.stweaks.commands.StLobbyCommand
-
Constructs a new StLobbyCommand with access to the plugin's configuration.
- StSpawnCommand - Class in com.storytimeproductions.stweaks.commands
-
Command that teleports a player to a configured spawn location in the "world" world.
- StSpawnCommand(FileConfiguration) - Constructor for class com.storytimeproductions.stweaks.commands.StSpawnCommand
-
Constructs a new StSpawnCommand using the provided configuration file.
- StStatusCommand - Class in com.storytimeproductions.stweaks.commands
-
Command for checking the player's current playtime status.
- StStatusCommand(JavaPlugin) - Constructor for class com.storytimeproductions.stweaks.commands.StStatusCommand
-
Constructor for the StStatusCommand class.
- Stweaks - Class in com.storytimeproductions.stweaks
-
Main class for the Stweaks, a plugin designed to manage and track player playtime, enforce playtime requirements, and handle other gameplay enhancements.
- Stweaks() - Constructor for class com.storytimeproductions.stweaks.Stweaks
- syncAndLoadBiomeItems(Set<Biome>) - Method in class com.storytimeproductions.stweaks.util.BiomeTrackerManager
-
Synchronizes and loads the biome-to-item mapping from the biome_item.yml configuration file.
T
- TablistManager - Class in com.storytimeproductions.stweaks.util
-
Utility class responsible for updating the tab list header and footer for players on the server.
- TablistManager() - Constructor for class com.storytimeproductions.stweaks.util.TablistManager
- TimeUtils - Class in com.storytimeproductions.stweaks.util
-
A utility class for time-related functions in the plugin.
- TimeUtils() - Constructor for class com.storytimeproductions.stweaks.util.TimeUtils
- toString() - Method in class com.storytimeproductions.models.Quest
-
Returns a string representation of the quest, including ID, name, lore, requirements, rewards, required players, and deadline.
U
- unsetQuestCompletion(UUID, String) - Method in class com.storytimeproductions.stweaks.util.QuestsManager
-
Unsets the completion status of a quest for a specific player, both in memory and in the database.
- updateBossBar(Player) - Static method in class com.storytimeproductions.stweaks.util.BossBarManager
-
Updates the Boss Bar for the given player to reflect their live playtime countdown.
- updateTablist(Player, double) - Static method in class com.storytimeproductions.stweaks.util.TablistManager
-
Updates the tab list for the given player with a custom header and footer.
All Classes and Interfaces|All Packages