Class StLobbyCommand

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

public class StLobbyCommand extends Object implements org.bukkit.command.CommandExecutor
Command that teleports a player to the lobby world and then to specific coordinates.

Coordinates and orientation are loaded from the plugin config.yml under the 'lobby' section.

  • Constructor Summary

    Constructors
    Constructor
    Description
    StLobbyCommand(org.bukkit.configuration.file.FileConfiguration config)
    Constructs a new StLobbyCommand with access to the plugin's configuration.
  • 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 /lobby command.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StLobbyCommand

      public StLobbyCommand(org.bukkit.configuration.file.FileConfiguration config)
      Constructs a new StLobbyCommand with access to the plugin's configuration.
      Parameters:
      config - The FileConfiguration instance used to retrieve lobby coordinates and settings.
  • Method Details

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
      Handles the /lobby command.

      Executes the Multiverse teleport and then teleports the player to coordinates defined in config.yml under 'lobby'.

      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
      Parameters:
      sender - The source of the command.
      command - The command object.
      label - The command label.
      args - Additional arguments.
      Returns:
      true if handled successfully.