- 9 types of statistical indicators
- Free of tedious file editing
- Support with full GUI forms
- Support with hot reloading
- Support with localized multi-language
Check your Endstone's version
- Endstone 0.10.0+
- 251220
Check your pre-plugins
- Optional pre-plugin
- Ensure you have downloaded the correct version and installed all required pre-plugins
- Place the
.whlfile into your server'spluginsfolder - Restart your server
- Enter the command
/ubdto call out the main form of UStatistic
plugins/
├─ ustatistic/
│ ├─ statistical_data.json
│ ├─ lang/
│ │ ├─ zh_CN.json
│ │ ├─ en_US.json
statistical_data.json
{
"umaru rize": {
"break_count": 0,
"place_count": 0,
"death_count": 0,
"kill_player_count": 0,
"kill_mob_count": 0,
"online_time": 0,
"pick_up_item_count": 0,
"drop_item_count": 0,
"move_distance": 0
}
}- Currently supported localized languages for UStatistic:
-
zh_CN -
en_US
- How to add more languages to UStatistic? Here we use Japanese for an example.
- Create a file named
ja_JP.jsonand place it intolangfolder - Copy all key-value pairs from
en_US.jsonand paste them intoja_JP.json - Refer to the English values and translate them all into Japanese, then save the file.
- Restart your server, and you're all done!
- Create a file named
- If you'd like your translated language to be included as one of the official languages of this plugin, feel free to shoot over a PR.
"""
Read only
Ustatistic provides two types of API.
For type A, you can get the data of all players for the specified statistical indicators,
and it returns a dict.
For type B, you can get the data of a specified player for a specified statistical indicator,
and it returns an int.
"""
# Type A
self.server.plugin_manager.get_plugin("ustatistic").api_get_statistical_data(statistical_type: str) -> dict
# Type B
self.server.plugin_manager.get_plugin("ustatistic").api_get_player_statistical_data(statistical_type: str, player_name: str) -> int
"""
What is statistical type?
Statistical type is used to specify a statistical indicator, you can select one of the following values for input.
- break_count
- place_count
- death_count
- kill_mob_count
- kill_player_count
- drop_item_count
- pick_up_item_count
- move_distance
- online_time
"""- U-Beautiful-Chat
- UPlayer (Plugin in press)
