Class PlayCommandBase

Direct Known Subclasses:
PlayFriendCommand, PlayLanCommand, PlayOnlineCommand

public abstract class PlayCommandBase extends CommandBase
Abstract base class for play commands that toggle server access.
  • 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.