Class BiomeTrackerCommand
java.lang.Object
com.storytimeproductions.stweaks.commands.BiomeTrackerCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Handles the `/biometracker` command for opening a GUI that shows the player's discovered biomes.
The command opens an inventory displaying all available biomes with different colors indicating
whether the biome has been discovered by the player.
-
Constructor Summary
ConstructorsConstructorDescriptionBiomeTrackerCommand
(BiomeTrackerManager trackerManager, org.bukkit.plugin.java.JavaPlugin plugin) Constructs a BiomeTrackerCommand instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
onCommand
(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) Handles the `/biometracker` command, opening a GUI that displays biomes the player has discovered and those they haven't, using different colors for each.
-
Constructor Details
-
BiomeTrackerCommand
public BiomeTrackerCommand(BiomeTrackerManager trackerManager, org.bukkit.plugin.java.JavaPlugin plugin) Constructs a BiomeTrackerCommand instance.- Parameters:
trackerManager
- The BiomeTrackerManager instance used to track discovered biomes.
-
-
Method Details
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) Handles the `/biometracker` command, opening a GUI that displays biomes the player has discovered and those they haven't, using different colors for each. The biomes are stored and retrieved from the database.- Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
- Parameters:
sender
- The command sender, typically a player.command
- The command that was executed.label
- The alias of the command used.args
- The arguments passed with the command.- Returns:
- true if the command was executed successfully, false otherwise.
-