Class StLobbyCommand
java.lang.Object
com.storytimeproductions.stweaks.commands.StLobbyCommand
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionStLobbyCommand
(org.bukkit.configuration.file.FileConfiguration config) Constructs a new StLobbyCommand with access to the plugin's configuration. -
Method Summary
-
Constructor Details
-
StLobbyCommand
public StLobbyCommand(org.bukkit.configuration.file.FileConfiguration config) Constructs a new StLobbyCommand with access to the plugin's configuration.- Parameters:
config
- TheFileConfiguration
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 interfaceorg.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.
-