Apollo
Developers
Mods
Keystrokes

Key Strokes

Displays when your movement, mouse or space bar is pressed.

Integration

How to toggle the mod

public void toggleKeyStrokesExample(Player viewer, boolean value) {
    Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
    apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModKeystrokes.ENABLED, value));
}

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: false
  • SCALE

    • Config Key: scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.5F
      • Maximum: 1.5F
  • KEY_STROKES_CLICKS

    • Config Key: key-strokes-clicks
    • Values
      • Type: Boolean
      • Default: true
  • LEFT_CPS

    • Config Key: left-c-p-s
    • Values
      • Type: Boolean
      • Default: false
  • RIGHT_CPS

    • Config Key: right-c-p-s
    • Values
      • Type: Boolean
      • Default: false
  • KEY_STROKES_MOVEMENT

    • Config Key: key-strokes-movement
    • Values
      • Type: Boolean
      • Default: true
  • KEY_STROKES_SPACEBAR

    • Config Key: key-strokes-spacebar
    • Values
      • Type: Boolean
      • Default: false
  • USE_ARROWS

    • Config Key: use-arrows
    • Values
      • Type: Boolean
      • Default: false
  • TEXT_SHADOW

    • Config Key: text-shadow
    • Values
      • Type: Boolean
      • Default: false
  • BORDER

    • Config Key: border
    • Values
      • Type: Boolean
      • Default: false
  • INNER_BORDER

    • Config Key: inner-border
    • Values
      • Type: Boolean
      • Default: false
  • BORDER_THICKNESS

    • Config Key: border-thickness
    • Values
      • Type: Float
      • Default: 0.5F
      • Minimum: 0.5F
      • Maximum: 3.0F
  • BOX_SIZE

    • Config Key: box-size
    • Values
      • Type: Float
      • Default: 18.0F
      • Minimum: 10.0F
      • Maximum: 32.0F
  • BORDER_COLOR

    • Config Key: border-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • TEXT_COLOR

    • Config Key: text-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • TEXT_PRESSED_COLOR

    • Config Key: text-pressed-color
    • Values
      • Type: String
      • Default: #FF000000
  • BACKGROUND_COLOR

    • Config Key: background-color
    • Values
      • Type: String
      • Default: #6F000000
  • BACKGROUND_PRESSED_COLOR

    • Config Key: background-pressed-color
    • Values
      • Type: String
      • Default: #6FFFFFFF
  • KEY_FADE_DELAY

    • Config Key: key-fade-delay
    • Values
      • Type: Long
      • Default: 75L
      • Minimum: 0L
      • Maximum: 500L