Class StCasinoCommand

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

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

    Constructors
    Constructor
    Description
    StCasinoCommand(org.bukkit.configuration.file.FileConfiguration config)
    Constructs a new StCasinoCommand 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)
    Executes the /casino command.

    Methods inherited from class java.lang.Object

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

    • StCasinoCommand

      public StCasinoCommand(org.bukkit.configuration.file.FileConfiguration config)
      Constructs a new StCasinoCommand with access to the plugin's configuration.
      Parameters:
      config - The FileConfiguration 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 interface org.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.