GameModeCommand

public class GameModeCommand extends AbstractPlayerCommand

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

java.lang.Object > AbstractPlayerCommand > GameModeCommand

Field Summary

playerComponent

final Player playerComponent

Field playerComponent.

gameMode

final GameMode gameMode

Field gameMode.

gameModeMessage

final Message gameModeMessage

Field gameModeMessage.

targetPlayerRef

final PlayerRef targetPlayerRef

Field targetPlayerRef.

ref

final Ref ref

Field ref.

store

final Store store

Field store.

world

final World world

Field world.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

Method Detail

GameModeCommand

public public GameModeCommand ()

Method GameModeCommand.

GameModeOtherCommand

public new GameModeOtherCommand ()

Method GameModeOtherCommand.

execute

protected void execute (@Nonnull final CommandContext context, @Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nonnull final World world)

Method execute.

Parameters:
@Nonnull final CommandContext context
@Nonnull final Store store
@Nonnull final Ref ref
@Nonnull final PlayerRef playerRef
@Nonnull final World world

executeSync

protected void executeSync (@Nonnull final CommandContext context)

Method executeSync.

Parameters:
@Nonnull final CommandContext context