Flectone Logo FlectonePulse

/toponline

Command to view the top players by playtime

command toponline


🌍 Localization

Path localizations → language.yml → command.toponline
toponline:
  null_page: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This page doesn't exist"
  header: "<fcolor:2>▋ Players: <count> <br>"
  line: "<fcolor:2><time_player> <fcolor:1>played for <fcolor:2><time>"
  footer: "<br><fcolor:2>▋ <click:run_command:\"<command> <prev_page>\">←</click> <fcolor:1>Page: <current_page>/<last_page> <fcolor:2><click:run_command:\"<command> <next_page>\">→"
toponline:
  null_page: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Страница не найдена"
  header: "<fcolor:2>▋ Игроков: <count> <br>"
  line: "<fcolor:2><time_player> <fcolor:1>наиграл <fcolor:2><time>"
  footer: "<br><fcolor:2>▋ <click:run_command:\"<command> <prev_page>\">←</click> <fcolor:1>Страница: <current_page>/<last_page> <fcolor:2><click:run_command:\"<command> <next_page>\">→"

null_page

Message if the entered page does not exist

Top part of the list message

line

Format of each entry in the list

Bottom part of the list message


⚙️ Setting

Path command.yml → toponline
toponline:
  enable: true
  per_page: 10
  aliases:
  - "toponline"
  cooldown:
    enable: false
  sound:
    enable: false

enable

Enables or disables the functionality of the module

per_page

The number of components per page

aliases

A list of aliases for using the command

ALIASES CAN BE ANYTHING

For example newcommand, newcommand_ru, ban, me etc.

cooldown

Usage delay

sound

Sound playback


🔐 Permissions

Path permission.yml → command.toponline
toponline:
  name: "flectonepulse.module.command.toponline"
  type: "TRUE"
  cooldown_bypass:
    name: "flectonepulse.module.command.toponline.cooldown.bypass"
    type: "OP"
  sound:
    name: "flectonepulse.module.command.toponline.sound"
    type: "TRUE"

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSEAvailable to no one, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to NON-operators of the server

cooldown_bypass

Permission to ignore the cooldown between uses

sound

Permission to use the sound

Last updated on

Edit on GitHub

On this page

Authors of page