Class PlayCommand


public class PlayCommand extends AbstractCommandCollection
A command collection for play-related commands that toggle server access.
  • Constructor Details

    • PlayCommand

      public PlayCommand(@Nonnull SingleplayerModule singleplayerModule)
      Default Constructor for a PlayCommand instance.
      Parameters:
      singleplayerModule - The singleplayer module to use.
  • Method Details

    • hasPermission

      public boolean hasPermission(@Nonnull CommandSender sender)
      Description copied from class: AbstractCommand
      Determines whether the given CommandSender has permission to execute this command.
      Overrides:
      hasPermission in class AbstractCommand
      Parameters:
      sender - The sender to check permission for.
      Returns:
      true if the sender has permission, false otherwise.