TabDeathCount
A lightweight plugin to display the death count of players in the playerlist (can be viewed by pressing the
A Java format string, can contain formatting codes. Must contain 1 format specifier for the player name string.
A Java format string, can contain formatting codes. Must contain 1 format specifier for the player's death count integer.
Must be A
The rest of the permissions, used to control command access, are below.
[TAB] key by default).
The death counts are retrieved from the statistic DEATHS. This statstic stores the number of deaths of a player since the start of the server. This means that TabDeathCount stores no data and does not need to be enabled all the time to register deaths. This also means that the death count can be modified by other plugins.
TabDeathCount works by setting the playerlist names. Unfortunately, it currently doesn't work with custom playerlist names, such as nicknames, etc. If another plugin sets a playerlist name it overwrites the one set by TabDeathCount, and when the death count is updated, the playerlist name is overwritten by TabDeathCount. It is best to disable other plugins from setting the playerlist names if you want to display death counts at all times.
Configuration
The following configuration options can be set in the plugin'sconfig.yml in order to modify the formatting of playerlist names. Note: if a playerlist name with the death count included is over 16 characters long, the player's name will be truncated. For example, if player long_player_name has 12 deaths, it might be displayed in the playerlist as
long_player_n 12Currently, there is no way around this.
playerName.format
A Java format string, can contain formatting codes. Must contain 1 format specifier for the player name string.
deathCount.format
A Java format string, can contain formatting codes. Must contain 1 format specifier for the player's death count integer.
deathCount.position
Must be start or end. start means to place the death count at the start, before the player name. end means to place the death count at the end, after the player name.
A config.yml example
playerName
format: "%s"
deathCount
format: "[%02d]"
position: start
The playerlist:
Permissions
All permissions begin withtabdeathcount., so it has been ommitted from this page. Remember to prefix all permissions with tabdeathcount..
| Permission | Effect on the player |
|---|---|
command.* |
Can run all subcommands. |
showdeathcount |
Their death count is shown. |
Commands
| Command | Description | Permission needed |
|---|---|---|
/tabDeathCount | /tdc <SUBCOMMAND> [ARG...] |
Main command of TabDeathCount. Call a subcommand. | command |
/tdc reloadConfig |
Reload the config from the config.yml file.
| command.reloadconfig |
/tdc updateDeathCounts |
Update the death count of all players. | command.updatedeathcounts |
-
View User Profile
-
Send Message
Posted Mar 23, 2016@GomoDD
Sorry, I have not supported this plugin for a long time, I should have marked it as abandoned earlier.
-
View User Profile
-
Send Message
Posted Mar 20, 2016Hey, great plugin, thanks! One annoying problem tho.. After I tried it out & disabled it, number 0 is showing next to every players name (when you press TAB) and it never goes away. How do I remove that? :(
-
View User Profile
-
Send Message
Posted Feb 2, 2016How do I reset someones death count?
-
View User Profile
-
Send Message
Posted Jan 25, 2015Can you add a reset?
-
View User Profile
-
Send Message
Posted Aug 7, 2014<<reply 2292662="">>
Thanks for the feedback, it's nice to know that you find this plugin useful. :)
As for your suggestions, I intended this plugin to be very simple and lightweight and only for TAB names, so I don't think I will use the suggestions in this plugin. However, I am considering making a new, more advanced plugin with the functionality of this one plus some of your suggestions.
I have never really looked into how scoreboards work, so that may prove challenging.
Using BarAPI is a great idea, though the most recent version is for 1.7.2, not sure if there are any issues on 1.7.9.
-
View User Profile
-
Send Message
Posted Aug 2, 2014Thank you for this nice plugin ! Works fine on my latest spigot
Only drawback : death have no comparison basis since I am on the server for one year, other from one week : would it be possible to have a command like /tcd init_marker <counter_name>
then you create a file which name is counter_name with all players UUID / death_count
afterwards when doing /tdc use_marker <counter_name>
you display in the value : (death_count - file_death_count)
The idea is like a chronograph, imagine we start a pvp event, we init the counters and see who is the best from the beginning of the event.
Additional commands like /tdc list_marker list names and /tdc del_marker <counter_name> do delete a marker
Anyway these are just ideas to improve a plugin from something fun to something usefull in game
It is possible to do this feature with scoreboard and command blocks but it is not so simple.
Thanks for your plugin
Other ideas : modify the chat with the counter above like player[12] or integrate later with a bar api.