RA-GeyserPlayerList

A player list plugin for Paper 1.21.x that shows a native Cumulus form to Bedrock (Floodgate) players and a config-driven action menu (TPA, message, pay, and more) when clicking another player, with a plain Bukkit/EssentialsX fallback for Java clients.

Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.2 API: Paper 1.21.x


About

RA-GeyserPlayerList replaces the plain /list output with something Bedrock players can actually interact with. Java players keep the usual text-based list (EssentialsX if installed, or a configurable Bukkit fallback). Bedrock players instead get a native Cumulus form — a scrollable list of buttons, one per online player, each showing their skin as the button icon.

Clicking a player in that list opens a second form: a fully config-driven action menu. Out of the box this powers buttons like "Request TPA", "Send Message", and "Pay", but none of that is hardcoded — every button, its type, its text, and the commands it runs are defined in config.yml, so you can add, remove, or completely redesign the menu (including nested sub-menus) without touching any code.


Features

Bedrock Player List Form

  • Shows every online player as a button in a native Cumulus SimpleForm, with the player's actual skin as the button icon (fetched via the Geyser skin API for Bedrock players, or mc-heads.net for Java players)
  • Title, header text, and per-player button label are all templated in config.yml and support PlaceholderAPI
  • Automatically sorted by LuckPerms primary group when group sorting is enabled

Config-Driven Action Menu

  • Clicking a player in the list opens a second Cumulus form built entirely from bedrock-form.action-form in config.yml
  • Every button is one of four primitives, and they can be freely mixed, nested, and reordered:
    • command — runs command(s) immediately, no further UI
    • confirm — shows a Yes/No form first, then runs command(s) if confirmed (this is what powers the built-in "Request TPA" button)
    • input — shows a form with one or more text fields; either runs commands directly afterward, or (if it has its own confirm: section) chains into a Yes/No step first (this is what powers "Send Message" — no confirm step — and "Pay" — with a confirm step)
    • form — opens a nested sub-menu (itself just another list of these same button types), nestable as deep as you want
  • A "Back" button is always appended automatically as the last button — you never need to add it yourself
  • Placeholders available throughout: %target% / %player% (the clicked player), %viewer% (the person who clicked), %input_<id>% (a value typed into an input field with that id), plus any PlaceholderAPI placeholder (resolved with the target's context)

Group Sorting (LuckPerms)

  • Sorts the player list — both the Bedrock form and the Java /list Bukkit fallback — by each player's LuckPerms primary group, instead of default join order
  • Group priority order is fully configurable; players whose group isn't in the list can be placed first or last
  • Optional alphabetical sort by username for players who share the same group

Java / Console Output

  • Tries EssentialsX's /list output first if EssentialsX is installed and enabled in config
  • Falls back to a fully configurable Bukkit-format list (header, footer, per-player format, and how many players are shown per line) when EssentialsX isn't available
  • Same group-sorting logic applies to the Bukkit fallback

Hook Detection

  • Floodgate — detects Bedrock players via FloodgateApi#isFloodgatePlayer; without it, every player is treated as Java and only ever sees the text-based list
  • EssentialsX — used for /list output on Java/console when present, otherwise the Bukkit fallback format is used
  • PlaceholderAPI — used to resolve placeholders everywhere text is rendered; built-in fallback placeholders (%player_name%, %player_ping%, %player_world%, %server_online%, %server_max_players%, %server_name%) still work even without it
  • LuckPerms — required for group sorting; if absent, group sorting is silently disabled and the original player order is kept
  • All four are soft-dependencies — the plugin loads and runs fine without any of them, just with the corresponding feature scaled back

Installation

  1. Place RA-GeyserPlayerList-1.0.2.jar into your plugins/ folder
  2. Optionally install Floodgate, EssentialsX, PlaceholderAPI, and/or LuckPerms for the extra features they unlock
  3. Start the server once to generate config.yml
  4. Customize bedrock-form, group-sort, and java-output in config.yml to your liking
  5. Use /ra-geyserplayerlist reload to re-read config.yml without restarting the server

File Structure

text
1
plugins/RA-GeyserPlayerList/
└── config.yml               # All plugin settings

Configuration

Bedrock Form

yaml
1
bedrock-form:
  title: "&rOnline Players %server_online%"
  header: |
    Server: Your Server/Mode
    Your Rank: %luckperms_prefix%
  player-columns:
    - "%luckperms_prefix%"
    - "%player_name%"
  column-separator: " "
  action-form:
    title: "Player: %player_name%"
    header: |
      Name   : %player_name%
      Rank   : %luckperms_prefix%
    back-button: "&8Back"
    buttons: [ ]   # see "Action Menu Buttons" below
  • title / header are parsed with the viewer's own placeholder context (their own rank, name, etc.)
  • player-columns builds each player button's label by joining the listed placeholders with column-separator — each column is parsed with the listed player's context, not the viewer's
  • action-form defines the second form that opens when a player is clicked — buttons is the config-driven button list described below

Action Menu Buttons

Each entry in bedrock-form.action-form.buttons is one button, built from the four primitives described in Features. Here are the three examples shipped by default, showing all three non-trivial types:

yaml
1
buttons:
  # ---- TPA: a plain confirm (no input needed) ----
  - id: tpa
    type: confirm
    label: "&aRequest TPA"
    form:
      title: "Confirm TPA"
      content: "Send a TPA request to %player_name%?"
      confirm-button: "&aYes, send request"
      cancel-button: "&cCancel"
      run-as: player            # console | player
      commands:
        - "tpa %target%"
      message: "&aTPA request sent to &f%player_name%&a."

  # ---- Message: an input with no confirm step ----
  - id: msg
    type: input
    label: "&bSend Message"
    form:
      title: "Message ? %player_name%"
      header: "Type your message below:"
      inputs:
        - id: text
          label: "Message"
          placeholder: "Type your message here..."
          default: ""
      confirm: null   # omit entirely to skip the confirm step
      commands:
        - "msg %target% %input_text%"
      message: "&aMessage sent to &f%player_name%&a."

  # ---- Pay: an input that chains into a confirm step ----
  - id: pay
    type: input
    label: "&ePay"
    form:
      title: "Pay %player_name%"
      header: "Enter the amount you want to send:"
      inputs:
        - id: amount
          label: "Amount"
          placeholder: "e.g. 100"
          default: ""
      # Because this "confirm:" section exists, submitting the amount above
      # does NOT run commands immediately — it opens this Yes/No confirmation first.
      confirm:
        title: "Confirm Payment"
        content: "Send &f%input_amount%&r to &f%player_name%&r?"
        confirm-button: "&aYes, send"
        cancel-button: "&cCancel"
        run-as: player
        commands:
          - "pay %target% %input_amount%"
        message: "&aSent &f%input_amount%&a to &f%player_name%&a."

A form-type button (nested sub-menu) looks like this:

yaml
1
  - id: more
    type: form
    label: "&7More Actions"
    form:
      title: "More: %player_name%"
      back-button: "&8Back"
      buttons:
        - id: kick
          type: command
          label: "&cKick Player"
          commands:
            - "kick %target% Kicked from the player list menu"
          run-as: console
          message: "&aKicked %player_name%."
          reopen: false   # if true, re-opens this same sub-menu after running

Field reference:

FieldApplies toDescription
idevery buttonAny unique string within its menu — not shown to the player
typeevery buttoncommand, confirm, input, or form
labelevery buttonButton text, parsed with the target's placeholder context
form.title / form.header (or content)confirm, input, formText shown on the sub-form/menu that opens
form.inputsinput onlyList of { id, label, placeholder, default } text fields
form.confirminput onlyOptional — if present, chains into a Yes/No confirm step instead of running commands immediately
form.confirm-button / cancel-buttonconfirm, and input.confirmYes/No button labels
form.back-buttonform onlyLabel for the sub-menu's own auto-appended Back button
commandscommand, confirm, and the innermost step of inputList of commands to run, with %target% / %viewer% / %player% / %input_<id>% substituted
run-ascommand, confirm, and input's final stepconsole (default) or player
messagecommand, confirm, and input's final stepSent to the viewer after the commands run
reopencommand onlyIf true, re-opens the current menu after the command runs (default false)

Notes:

  • If any input field is submitted blank, the flow is cancelled and the previous menu re-opens instead of running commands with empty values.
  • If the target player leaves before a button is clicked/confirmed, the viewer gets the messages.player-offline message and the flow stops there.
  • form/confirm/input sub-forms without their own form: section are skipped with a console warning — the flow just falls through to the Back button.

Types of Forms Used

Every screen shown to a Bedrock player is one of three underlying Cumulus form types. The type: value you set on a button decides which one gets shown next:

Cumulus formShown forWhat it looks like on Bedrock
SimpleFormThe player list itself, the root action menu, and any button with type: formA titled screen with a list of buttons, tapped one at a time
ModalFormA button with type: confirm (and the optional confirm: step chained from an input button)A Yes/No dialog with a title and body text, and two buttons
CustomFormA button with type: inputA form with one or more text fields, filled in and submitted together

In other words: command doesn't open any form at all (it just runs), confirm opens a ModalForm, input opens a CustomForm (optionally followed by a ModalForm if it has its own confirm: section), and form opens another SimpleForm nested one level deeper.

Editing the Action Menu

Everything under bedrock-form.action-form.buttons in config.yml is safe to edit freely — nothing about the menu is hardcoded in the plugin. After any change, run /ra-geyserplayerlist reload (no server restart needed).

To edit an existing button — find its block by id (e.g. id: tpa) and change whatever field you need: label, commands, message, confirm-button/cancel-button text, etc. The field reference table above lists what each type supports.

To add a new button — append a new entry to the buttons: list and pick one of the four types:

  • command — for something that should happen instantly with no extra screen (e.g. a "Heal Me" or "Kick Player" button). You only need label, commands, and optionally run-as/message/reopen.
  • confirm — for something that needs a Yes/No check first but no text input, like the built-in TPA button. Needs a form: block with title, content, confirm-button, cancel-button, commands, and optionally run-as/message.
  • input — for something that needs the player to type something first, like the built-in Message and Pay buttons. Needs a form: block with title, header, and an inputs: list (each with id, label, placeholder, default). Add a nested confirm: section inside form: if you also want a Yes/No step before running commands (like Pay); leave it out for a direct-run flow (like Message).
  • form — for grouping several buttons into a sub-menu, like the "More Actions" example above. Needs a form: block with its own title, back-button, and a nested buttons: list — which can itself contain any of these four types again, nested as deep as you want.

To remove a button — delete its entire block from the buttons: list.

To reorder buttons — they render in the exact order they're listed in the YAML. The "Back" button is always appended automatically after whatever you've listed, so you never add it yourself.

Troubleshooting: if a button doesn't behave as expected, check the console after reloading — an unrecognized type value or a confirm/input/form button missing its form: section is logged as a warning there, and the plugin falls back to just showing the Back button for that entry instead of crashing.

Deep Dive: type: command

The simplest type — no extra screen at all, it just runs commands the instant the button is tapped.

Full anatomy:

yaml
1
- id: heal
  type: command
  label: "&aHeal Player"          # button text
  commands:                       # runs top-to-bottom, %target%/%viewer%/%player% substituted
    - "heal %target%"
    - "feed %target%"
  run-as: console                 # console (default) | player
  message: "&aHealed and fed %player_name%."   # sent to the viewer after commands run
  reopen: false                   # if true, re-opens the CURRENT menu after running (default false)

Field reference:

FieldRequiredDescription
labelYesButton text, parsed with the target's placeholder context
commandsNoList of commands to run, in order; omit for a button that only sends a message
run-asNoconsole (default) or player — who the commands are dispatched as
messageNoSent to the viewer right after the commands finish
reopenNoIf true, re-opens the same menu afterward instead of leaving the player on a closed form (default false)

Notes:

  • No form: section is needed or used for this type — anything you'd put under form: on other types goes directly on the button itself here.
  • Since there's no confirmation step, command is best for low-risk/reversible actions (heal, feed, a cosmetic toggle) — for anything destructive or that costs the player something, use confirm instead.
  • reopen: true is handy for buttons meant to be tapped repeatedly without navigating back and forth, like a toggle.

Deep Dive: type: confirm

Shows a Yes/No ModalForm before running anything — this is what powers the built-in "Request TPA" button. Unlike input, there's no text field involved, just a confirmation.

Full anatomy:

yaml
1
- id: tpa
  type: confirm
  label: "&aRequest TPA"           # button text on the PREVIOUS menu
  form:
    title: "Confirm TPA"           # title of the ModalForm
    content: "Send a TPA request to %player_name%?"   # body text of the ModalForm
    confirm-button: "&aYes, send request"
    cancel-button: "&cCancel"
    run-as: player                 # console | player — who runs "commands" below
    commands:
      - "tpa %target%"
    message: "&aTPA request sent to &f%player_name%&a."   # sent only if confirmed

Field reference (all live under form:):

FieldDescription
titleTitle of the Yes/No dialog
contentBody text, parsed with the target's placeholder context
confirm-button / cancel-buttonLabels for the two buttons on the dialog
commandsRuns only if the player taps the confirm button
run-asconsole (default) or player
messageSent to the viewer only if confirmed

Notes:

  • Tapping cancel (or closing the form) just goes back to the previous menu — nothing runs, no message is sent.
  • content, commands, and message all support the same placeholders as everywhere else: %target%/%player%, %viewer%, and any PlaceholderAPI placeholder resolved with the target's context. There's no %input_*% here since there's no text field — that's only available when a confirm: is chained from an input button (see below).
  • Use confirm for anything you want a safety check on before it happens (TPA requests, kicks, giving items) but that doesn't need the player to type anything first.

This is the most flexible button type, since it can end in two different ways depending on whether you add a confirm: section. Here's the full field-by-field breakdown.

Full anatomy of an input button:

yaml
1
- id: pay                          # unique id within this menu (not shown to the player)
  type: input
  label: "&ePay"                   # button text on the PREVIOUS menu (the one this button sits in)
  form:
    title: "Pay %player_name%"     # title of the CustomForm (the input screen itself)
    header: "Enter the amount you want to send:"   # shown above the fields, index 0
    inputs:                        # one entry per text field, shown in this order
      - id: amount                 # used later as %input_amount%
        label: "Amount"            # field label
        placeholder: "e.g. 100"    # greyed-out placeholder text inside the field
        default: ""                # pre-filled value when the form opens
    # ---- everything below is what happens AFTER the player submits the form ----
    confirm:                       # OPTIONAL — include this to require a Yes/No step first
      title: "Confirm Payment"
      content: "Send &f%input_amount%&r to &f%player_name%&r?"
      confirm-button: "&aYes, send"
      cancel-button: "&cCancel"
      run-as: player                # console | player
      commands:
        - "pay %target% %input_amount%"
      message: "&aSent &f%input_amount%&a to &f%player_name%&a."

How the flow branches after submit:

  • With a confirm: section (like pay above) — submitting the CustomForm opens a ModalForm next, showing confirm.content with the typed values already substituted in (%input_amount% becomes whatever the player typed). Only if they tap the confirm button do confirm.commands actually run and confirm.message get sent. run-as, commands, and message written directly under form: (outside confirm:) are ignored in this case.
  • Without a confirm: section (like msg in the earlier example) — submitting the CustomForm runs form.commands immediately, no extra screen. form.run-as and form.message (written directly under form:, at the same level as inputs:) apply here instead.

Multiple input fields example (not just one):

yaml
1
- id: report
  type: input
  label: "&cReport Player"
  form:
    title: "Report %player_name%"
    header: "Tell us what happened:"
    inputs:
      - id: reason
        label: "Reason"
        placeholder: "e.g. Griefing, cheating, chat abuse"
        default: ""
      - id: details
        label: "Additional details (optional)"
        placeholder: "Anything else we should know?"
        default: "-"
    commands:
      - "report %target% %input_reason% - %input_details%"
    run-as: console
    message: "&aReport submitted for %player_name%."

Each field submitted becomes its own %input_<id>% placeholder — %input_reason% and %input_details% in this example — usable anywhere in commands, message, or a chained confirm: block's content/commands/message.

Things to watch out for:

  • Every field is required. If the player submits with any field left blank, the whole flow is cancelled and the previous menu re-opens — commands never run with an empty value. Use default: to pre-fill a sensible value (like "-" for an optional field) if you don't want a blank submission to count against the player.
  • inputs: order matters — it's also the order the fields appear on the Bedrock form.
  • id values only need to be unique within that one button's inputs: list, not plugin-wide.

Deep Dive: type: form

Opens a nested sub-menu — itself just another SimpleForm with its own list of buttons, which can be any of these four types again (including more form buttons, nested as deep as you want).

Full anatomy:

yaml
1
- id: more
  type: form
  label: "&7More Actions"          # button text on the PARENT menu
  form:
    title: "More: %player_name%"   # title of this SUB-menu
    content: ""                    # optional body text shown above the sub-menu's buttons
    back-button: "&8Back"          # label for THIS sub-menu's own auto-appended Back button
    buttons:                       # a completely fresh buttons list, same rules as the top level
      - id: kick
        type: command
        label: "&cKick Player"
        commands:
          - "kick %target% Kicked from the player list menu"
        run-as: console
        message: "&aKicked %player_name%."

      - id: freeze
        type: confirm
        label: "&bFreeze Player"
        form:
          title: "Confirm Freeze"
          content: "Freeze %player_name%?"
          confirm-button: "&aYes"
          cancel-button: "&cNo"
          run-as: console
          commands:
            - "freeze %target%"
          message: "&aFroze %player_name%."

Field reference (all live under form:):

FieldDescription
titleTitle of the sub-menu screen
contentOptional body text above the button list (same as content on the root/action-form menu)
back-buttonLabel for the Back button that's auto-appended to this sub-menu (tapping it returns to whichever menu opened it — the parent, or the player list if this is the root)
buttonsA full nested button list — same four types, same rules, all over again

Notes:

  • There's no depth limit — a form button's buttons: list can contain more form buttons, and so on. Keep in mind each extra level is one more tap for the player, though, so avoid nesting purely for organization if a flat list would do.
  • Each sub-menu tracks its own "where do I go back to" — a Back button inside a nested sub-menu returns to whichever menu it was opened from, not all the way to the player list.
  • Unlike command/confirm/input, a form button never runs any commands or sends any message itself — it only ever navigates. Any actual command execution has to happen in a command/confirm/input button placed somewhere inside it.

Group Sorting (LuckPerms)

yaml
1
group-sort:
  enabled: true
  order:
    - admin
    - mvp
    - vip
    - default
  unknown-group-position: last   # "last" or "first"
  sort-by-name-within-group: true

Applies to both the Bedrock form and the Java /list Bukkit fallback. Has no effect if LuckPerms isn't installed.

Java / Console Output

yaml
1
java-output:
  use-essentialsx: true
  header: "&6--- Online Players (%server_online%/%server_max_players%) ---"
  footer: "&6-------------------------------------------"
  player-format: " &f%luckperms_prefix% &7%player_name% &8[%player_ping%ms]"
  players-per-line: 0   # 0 = one player per line

Only used when use-essentialsx is false, or EssentialsX isn't installed.

Messages

yaml
1
messages:
  player-offline: "&cThat player is no longer online."
  no-permission: "&cYou don't have permission to do that."
  floodgate-not-found: "&cFloodgate is not installed. Bedrock GUI is disabled."

Commands

CommandDescriptionUsage
/list (aliases /playerlist, /plist)Shows the player list — a Cumulus form for Bedrock players, EssentialsX/Bukkit text output for Java players and consolePlayer / Console
/ra-geyserplayerlist reload (aliases /rageyserplayerlist, /rgpl)Reloads config.yml without restarting the serverPlayer / Console

Permissions

PermissionDefaultDescription
rageyserplayerlist.reloadopAllows using /ra-geyserplayerlist reload

License

Developed by RajaAditya — rajaaditya.my.id

This plugin is closed source. Redistribution without permission is prohibited.