KillCommand

public class KillCommand extends AbstractPlayerCommand

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

java.lang.Object > AbstractPlayerCommand > KillCommand

Field Summary

damageSource

final Damage.CommandSource damageSource

Field damageSource.

targetPlayerRef

final PlayerRef targetPlayerRef

Field targetPlayerRef.

ref

final Ref ref

Field ref.

store

final Store store

Field store.

world

final World world

Field world.

playerComponent

final Player playerComponent

Field playerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

Method Detail

KillCommand

public public KillCommand ()

Method KillCommand.

KillOtherCommand

public new KillOtherCommand ()

Method KillOtherCommand.

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

Damage

public new Damage (damageSource, DamageCause.COMMAND, 2.1474836E9f)

Method Damage.

Parameters:
damageSource damageSource
DamageCause.COMMAND DamageCause.COMMAND
2.1474836E9f 2.1474836E9f

executeSync

protected void executeSync (@Nonnull final CommandContext context)

Method executeSync.

Parameters:
@Nonnull final CommandContext context