ScoreboardStatsX
Note
This plugin is compatible with HealthBar, ColoredTags, Ghost Player and all other scoreboard plugins.
Just enable compatibilityMode in the configuration and install ProtocolLib. For normal use ProtocolLib is NOT required.
Features:
You don't need a database for all these features
- Much better performance (since 0.7)
- All versions of ScoreboardStats supports all Minecraft versions above 1.5
- Optimized for all kinds of servers.
- Fast support on every question
- Support UTF-8 characters like the hearts Click here:
- Many variables Click here:
- fully configurationable
- PvP can also be displayed on Signs Click here:
- Support SQL-Databases
- No database required unless you don't want this plugin to track pvpstats
- The Player can see his own stats (Kills/Deaths) with the Scoreboard on the right side
- You can disable the scoreboard for custom worlds
Variables for all the following plugin:
- mcMMO
- Economy
- Heroes
- Factions
- SimpleClans
- uSkyBlock
- and many more coming soon
Please use the Tickets for any issues, errors or suggestions.
Installation
- Download it
- drop it in your /plugins/ folder
- start your server
- join the server and..
- That's it
- All variables can be found here: https://dev.bukkit.org/projects/scoreboardstats/pages/variables
Commands
Command | Description | Aliases |
---|---|---|
/sidebar | Toggle (show or hide) the scoreboard on the right side | side, scoreboardstats, sb toggle |
/sidebar reload | Reload the configuration | side reload, scoreboardstats reload, sb reload |
For plugin developers/API
See the wiki on Github: https:github.com/games647/ScoreboardStats/wiki
Permissions
Permission | Description |
---|---|
scoreboardstats.use | General permission. Without that the scoreboard will not be displayed for the player |
scoreboardstats.command.toggle | Toggle the sidebar |
scoreboardstats.reload | With this permission a player can reload the configuration |
scoreboardstats.sign | Only player with this permission can create signs that displays the kills, deaths, etc. |
Source
You don't have to decompile the plugin. You can find there the source code with comments and building utilities.
ScoreboardStats is open source and hosted on GitHub; feel free to fork, star, or contribute by making pull requests and opening issues.
Auto-Updater
- This plugin uses an Auto-updater. if you don't want an automatically update. Disable it in the configuration.
- The updater only utilize the api of curse/dev.bukkit, so you don't get an unapproved version. Every file providing there is accepted by the devBukkit staff
- I can upload a new version with bug fixes where you don't have to download it, the plugin can do it for you automatically.
- The updater only runs on plugin startup, and then as a seperate thread, so it doesn't really affect your startup time.
- Every file there equals the files on this page.
Compatibility with older minecraft versions
As you can see on file list there are selected three versions. These version numbers are for the Minecraft versions. Lowest test version, mid version and the highest tested version. That means that you should always use the latest version of ScoreboardStats although you use an old Minecraft version. It's very hard to use all versions at once, so please use the newest version of ScoreboardStats.
@Maxx_Qc
Which IDE are you using? I could give you some screenshots.
I don't know how to attach javadoc, I'm quit starting
@Maxx_Qc
But I I think your server then uses SQLite (.db file). SQL is just a database language and JDBC (Java Database Connectivity) connects to the database using the driver, which is provided in the server jar (one for mysql and one for sqlite). So the code is the same.
In order to get the kills just call the method getKills on the player stats object.
You can view the JavaDoc or Source Code if you need a more detailed help.
BTW: I fixed the link to the JavaDoc it should work now. I strongly recommend you to add Javadoc Jar or link to your dependencies. It helps a lot in my opinion as you see the documentation in your IDE (Integrated Development Environment, i.e. eclipse) while viewing the suggestions (Control + Space)
I hope I could help. Let me know if you need more help.
@games647 I just want to know the method I can use to get the number of kills of a player from your plugin. You know on the scoreboard, you can see kills and deaths if pvpstats is enable. On my server, PvPStats is enable and I want to show the number of kills of every players when they type in chat. Sorry for mistakes. P.S: My server doesn't use MySQL
EDIT: Code
private PlayerStats getStats(Player player) { for (MetadataValue metadata : player.getMetadata("player_stats")) { if (metadata instanceof PlayerStats) { return (PlayerStats) metadata; } } return null; }
@EventHandler public void playerChat(AsyncPlayerChatEvent event) { event.setFormat(colorize((getConfig().getString("prefix").replaceAll("%kills", String.valueOf(getStats(event.getPlayer()).getKills()))) + event.getFormat())); event.getPlayer().sendMessage(String.valueOf(getStats(event.getPlayer()).getKills())); }
@bry5318
and where did you asked? I searched a lot of sites and even my pms, but I haven't seen any messages from you about that.
It just works with mcprison as you can see the optional dependency list, because there was a ticket and a pull request on Github for that plugin.
@Maxx_Qc
I think that could help you:
If you want to update something on events like player kill or mob kill, you could listen on the EntityDeath- or PlayerDeathEvents on a higher priority in order to call your method after the one from ScoreboardStats to see the changes.
If you need new methods or any help, just ask.
How can I get the number of kills of a player from your plugin in my plugin?
Ive asked multiple times now and still no response. What prison/rankup plugin does this plugin work with? Also, please tell me where to find the variables for that prison/rankup plugin
@123sc245
You need to activate pvp stats tracking in the configuration.
I also have a bug but before that it was working. in the cmd it comes up with "cannot find variable with name <kills> maybe you misspelled it or the replacer isn't available yet"
Someone please help me :D
@OldManTigerMask
No there isn't
Is there a variable for Plot Me?
i have a Bug, money dosen t see in game... :/ but befor that working.
http://pastebin.com/pXPSmjEy
i use tou re last build 22april
Sorry that ok i haven t syncro essential-crafconomy3
@Nexoq
The vanilla scoreboard doesn'the conflict with scoreboardstats if you activated compatibility Mode and installed Protocollib. It's a requirement for that feature. You can see that also in your log.
Sent from mobile
@Nexoq
For compatibility with other scoreboard plugins activate compatibilityMode in the configuration. Temp-scoreboard will be fixed soon.
Sent from mobile.
I love this plugin! But, I have a temp-scoreboard with "most kills", and I want it to update every X seconds. How can i fix that? And, my server is a parkour-server with the players parkour-scores in TAB, can you fix so I can combinate it with a sidebar from this plugin? Sorry for my bad english, im from sweden :p /Nexoq
@MineCraftMyph
See this ticket. It should be fixed in one of the dev builds.
No sorry it's not possible to change the color of the numbers. It's specified by the client and there is no option to change it.
@games647
Bug http://pastebin.com/CA1AU5tR
@immercraft
For economy variables you need Vault installed.
Is Protocollib enabled or are there any errors in the log? Maybe you should use a dev-build.
Sent from mobile.