Gadgets

What is Gadgets?

Gadgets are "plugins for a plugin" — jar-files that loaded by OkGlass plugin and performs actions required to show performance information. There are some gadgets included to OkGlass:

Chunks

Chunks (GadgetChunks.jar) provides displaying number of chunks loaded in memory.

Entities

Entities (GadgetEntities.jar) provides displaying number of active entities.

Memory

Memory (GadgetMemory.jar) provide information about memory usage. Shows used memory (Mb/Gb) and percent of used memory. You choose measurement unit in gadgets.yml:

Configuration:

Memory:
  enabled: true
  gigabytes: false # Set to true if you need show memory usage in gigabytes; false — megabytes.

Ping

Ping (GadgetPing.jar) performs a ping operation to check is host reachable or not. By default gadget pings a google.com but you can configure any other host at gadgets.yml. This gadget supports too method of "ping": using internal Java method, and a operating system ping routine. By default for non-Windows system native Java-ping is enabled (use-java-ping: true). But it recommended to test both of this methods at your system and choose best for you. At my local machine non of this methods did not provide a sharp result (the error was more than 30 ms).

Configuration:

Ping:
  enabled: true
  delay-time: 30  # delay between two pings
  number-of-repeats: 5 # number of consecutive pings, to improve the accuracy of the result
  host: google.com  # host to ping
  show-host-name: true # show host at OkGlass display (if false - shows "PING:")
  use-java-ping: false # Use native Java-ping or provided by operating system

TPS

TPS (GadgetTPS.jar) monitoring a ticks per second information - measurement of the server performance. If TPS is lesser than 20 it means that server is overloaded. Configuration:

TPS:
  enabled: true
  tps-update-delay: 10 # calculate TPS every XX seconds (default - 10)

PlayerPing

PlayerPing (GadgetPlayerPing.jar) provides and average value of pings of all online players and value of player's ping.

Configuration:

PlayerPing:
  enabled: true
  show-average-ping: true # Show average ping line
  show-player-ping: true # Show player's ping line

Warning! This plugin is requires FakePlayersOnline plugin installed.

Online

Online (GadgetOnline.jar) shows number of online players

WorldOnline

WorldOnline (GadgetWorldOnline.jar) shows name of the world where player located and number of online players in this world.

Balance

Balance (EconomyBalance.jar) shows your economy balance (only integer part). This gadget requires Vault and economy plugin installed.

RichPlayer

RichPlayer (EconomyRichPlayer.jar) shows name of richest of online players and his account balance. This gadget requires Vault and economy plugin installed.


Comments

Posts Quoted:
Reply
Clear All Quotes