Class BiomeTrackerCommand

java.lang.Object
com.storytimeproductions.stweaks.commands.BiomeTrackerCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class BiomeTrackerCommand extends Object implements 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

    Constructors
    Constructor
    Description
    BiomeTrackerCommand(BiomeTrackerManager trackerManager, org.bukkit.plugin.java.JavaPlugin plugin)
    Constructs a BiomeTrackerCommand instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.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.