Debugging the plugin

How to debug the plugin

If you have any issues with the plugin, a debug might be useful to figure out where it went wrong.

/sm debug

The debug list shows all players that do and don't have x flags, and is included or excluded in calculation of sleep. It narrows down to the players that gets included in the calculation.

The players who appears red in a section, is excluded by calculation. The section explains why the player(s) is excluded.

In-game debug
Console debug (some consoles also accepts colors, and will display similarly as In-game debug)

Picture above shows all lines that appears upon debug. Note: Only those flags you have activated will appear in debug.

For instance: the flag "use-afk" is set to true, making AFK-people excluded from calculation. In the photo you can see that player Penalhus turns red next to Non-AFK players. That player is therefore excluded in the sleep-calculation, and only Villmarksjenta is included.

Last updated

Was this helpful?