cbstats — CraftBukkit stats


class cbstats.CraftBukkitStats(bukkit_folder=False)
bukkit_folder

The full path to CraftBukkit’s server.log

file_server_log

The full path to ops.txt

file_server_operators_file

The full path to server.properties

file_server_properties

The full path to whitelist.txt

file_server_whitelist

You should not go further than this if you do not know what you are doing. - And if you change something, make sure you backup this script, I’ve already lost this to a crash once.

get_connected()

Returns a dictionary of the currently connected users. Example:

get_operators()

Returns operators entered in the ops.txt file

get_properties()

Returns server properties found in the server.properties file

get_property(property)

Returns named property if it is found in the server.properties file

get_usage_stats()

Returns statistics about the users of the server

get_whitelist()

Returns a list containing nicknames present in whitelist

Previous topic

Welcome to cbstats’s documentation!

This Page