Onlinetime

With the Onlinetime module, players can view their time spent on your network.

config.yml

Prefix

The prefix is used by default with every message. It can be set in the message files at the beginning of each message. To set it, simply write %prefix% (placeholder). This will then be exchanged by the system with the prefix entered in config.yml.

prefix: "&7[&bOnlineTeime&7]&r"

show

Under the configuration show you can set which "values" the player can see when entering the command.

show:
  seconds: true
  minutes: true
  hours: true
  days: true
  years: true

If the player has been on the server for only 1 minute, only 1 minute will be displayed. The same is if the player was online for 1 day, 2 hours 42 minutes and 9 seconds, only that will be displayed.

Aliases

You can also define so called aliases which you can enter instead of /onlinetime. For this you simply add further points under the point aliases.

aliases:
  - "ot"

Default configuration

onlinetime:
  prefix: "&7[&bOnlineTeime&7]&r"
  show:
    seconds: true
    minutes: true
    hours: true
    days: true
    years: true
  aliases:
    - "ot"

Command

Syntax

/onlinetime <player>

Last updated