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 CommandContextcontext@Nonnull final Storestore@Nonnull final Refref@Nonnull final PlayerRefplayerRef@Nonnull final Worldworld
Damage
public
new
Damage
(damageSource, DamageCause.COMMAND, 2.1474836E9f)
Method Damage.
- Parameters:
damageSourcedamageSourceDamageCause.COMMANDDamageCause.COMMAND2.1474836E9f2.1474836E9f