BanCommand

public class BanCommand extends AbstractAsyncCommand

Command for ba operations. Registered with the command system and callable by players.

java.lang.Object > AbstractAsyncCommand > BanCommand

Field Summary

username

final String username

Field username.

rawInput

final String rawInput

Field rawInput.

usernameIndex

final int usernameIndex

Field usernameIndex.

afterUsername

final String afterUsername

Field afterUsername.

ban

final InfiniteBan ban

Field ban.

player

final PlayerRef player

Field player.

disconnectReason

final CompletableFuture> disconnectReason

Field disconnectReason.

Method Detail

BanCommand

public public BanCommand (@Nonnull final HytaleBanProvider banProvider)

Method BanCommand.

Parameters:
@Nonnull final HytaleBanProvider banProvider

executeAsync

protected CompletableFuture executeAsync (@Nonnull final CommandContext context)

Method executeAsync.

Parameters:
@Nonnull final CommandContext context

InfiniteBan

public new InfiniteBan (uuid, context.sender()

Method InfiniteBan.

Parameters:
uuid uuid
context.sender( context.sender(