Class StCasinoCommand
java.lang.Object
com.storytimeproductions.stweaks.commands.StCasinoCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Handles the /casino command, teleporting the player to the "casino" world using Multiverse.
This command can only be executed by players. When run, it dispatches the Multiverse teleport command as the console to move the player to the "casino" world.
-
Constructor Summary
ConstructorsConstructorDescriptionStCasinoCommand
(org.bukkit.configuration.file.FileConfiguration config) Constructs a new StCasinoCommand with access to the plugin's configuration. -
Method Summary
-
Constructor Details
-
StCasinoCommand
public StCasinoCommand(org.bukkit.configuration.file.FileConfiguration config) Constructs a new StCasinoCommand with access to the plugin's configuration.- Parameters:
config
- TheFileConfiguration
instance used to retrieve casino coordinates and settings.
-
-
Method Details
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) Executes the /casino command.- Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
- Parameters:
sender
- The source of the command.command
- The command that was executed.label
- The alias of the command used.args
- The command arguments.- Returns:
- true if the command was handled, false otherwise.
-