Highscores
Highscores - by Lolmewn
What does it do?
This plugin allows a server owner to view highscores based on Stats from the stats plugin.
Configuring the plugin
The config
Please check out this page to see what the config values mean.
The highscores.yml file
For this, I'm going to redirect you to my Achievements page. Why? Because it's exactly the same layout and markup as the achievements.yml.
Two exceptions. Don't add the amount (BLOCK_BREAK 10 TOTAL would become BLOCK_BREAK TOTAL), and the onComplete section has been renamed to onGet.
Commands and Permissions
Currently, there's only one command, and no permissions. Everyone can use all commands.
Command | Description |
---|---|
/highscores (alias is /hs) | Lists your highscores |
/highscores page <page> | Lists your highscores on page <page> |
/highscores top <highscore> | Lists the top players for Highscore <highscore>. <highscore> can either be the ID of the start of the highscore name. |
Signs
You can create Highscore signs too with the plugin. Grab a sign, place it and put the following on it:
[Highscore]
<statName>
This will create a sign and will automatically scroll through the top of the highscore.
Web-end?
If the demand is high, a web-end might be created for this plugin (possibly hooking into the Stats web-end, providing you with an integrated version).
Questions
Any questions can go in the comment section. If you are looking for support on how to use this plugin, you can ask me on IRC (#Lolmewn on irc.esper.net). If you have issues or have an awesome idea for the plugin, you can create a ticket.
Development builds
Development builds of this project can be acquired at the provided continuous integration server.
These builds have not been approved by the BukkitDev staff. Use them at your own risk, they may or may not work at all.
Development builds for Stats can be found at my CI, over at http://ci.lolmewn.nl/job/Highscores/. Note that these builds are pre-alpha, and might not work at all. Therefore, they are not supported. Barely any testing has been done on them, and they should soley be used for (for example) making your configuration file ready.
Developers
If for some reason you want to build against this plugin, you can find the source, javadocs and jar over at http://centrility.nl:8081/nexus/.
There currently is no API, if requested I can always add one (or events).
Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version If you wish to disable this feature (/me cries), you can do so by opt-ing out, which you can do in the config file under /plugins/PluginMetrics/
Auto-updater
This plugin has a built-in auto-updater, which connects to BukkitDev to check for updates. If you, for some reason, wish to disable this process, you can do so by setting 'update' to false in the plugins' settings file.
@puckman1971
I should probably update Stats at some point, indeed.
Any plans to update this to stats3? Asking as highscores, for me and my players, is the main fun of a stats plugin.
I dont understand what this plugin does exactly, can i setup a command such ABNKills that will show top 10 killers or ABNDeaths and shows top 10 Deaths?
@ABNGaming
Works with 1.8.8, only works with Stats 2 so far, haven't updated for Stats 3.
Does it work with spigot 1.8.8? and do I need stats 3 for it to function?
@DragonCrush1
It does, but it doesn't work yet with Stats 3.
is this plugin works for 1.8.7?
26.07 04:28:37 [Server] ERROR Error occurred while enabling Highscores v2.0.0-38 (Is it up to date?) 26.07 04:28:37 [Server] INFO Enabling Highscores v2.0.0-38 26.07 04:28:37 [Server] INFO Enabling Stats v3.0.1-359
I have stats on my server working fine but Highscores doesn't work...
fix?
@Lolmewn
Yes! I already made a ticket. I hope it will be implemented! Thanks
@davewolax
You already made a ticket for this :P I think it's a reasonably good idea so I'll look into it.
Hi! I have good Idea for this plugin and I hope you can implement it in the next update.
We all want players to stay more on the server. play more and more. I have added a lot of features such as vote for world edit and Stats page to show top players on the website etc... to make players STAY!
But What I think would be great is that if player ranks (I mean their playtime) could be shown in the chat as their prefix, it would make a challenge for players to get to the top rank.
How it works: So every player has a play time. for example Player1 has 5hours and 25 minutes play time and player2 has 1 hour and 10 minutes play time. So player1 will have higher rank (lower number in prefix) than player2. So in the chat can we make it to show their rank based on their play time. E.g: <Rank><Player>: Hello
Note that the rank isn't actually registered in permission plugin such as PEX. this is completely different than prison server. in this method ranks aren't registered and setup in PEX . because there are no ranks! basically player still has his own rank such as "Default" or "Member" but it's just that their prefix will always change.
So for example if until today 5270 players have joined my server from first time. when the 5271th player joins the server in chat it will show their prefix that number <5271><player>:. So as the player play more on the server, he will have obviously higher play time and his rank number will be lowered that means higher for play time. (higher player rank).
So this means if player has the most play time such as me! my prefix in chat will be No.1 because I'm the top player.
So players will struggle and fight to get to the No.1 rank! I keep looking forward to this plugin and I very much appreciate your work! Thanks.
When i use /highscores top kill it will correctly display the highscore amount with player name however when i use /highscores it labels all highscores as no-one 0.0. Can you please tell me how to fix?
Uhm, I get a message stating i don't have permissions but you said there are no permissions?
@Lolmewn
Thanks and I hope you can release an update for this. Please add support of 1.7.9+ and 1.7.10.
@shadowofdoom1000
@madtomic
That's a weird error... it can only occur when there *is* a highscore entry for a Stat but no player holding this highscore... I'm going to have to look into this further.
What are these threads for?
[22:02:51 WARN]: Exception in thread "pool-3-thread-3" [22:02:51 WARN]: org.apache.commons.lang.UnhandledException: Plugin Highscores v 2.0.0-38 generated an exception while executing task 22 at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyn cTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at nl.lolmewn.highscores.workers.ScoresSaveThread.run(ScoresSaveThread.j ava:49) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java :53) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyn cTask.java:53) ... 3 more
[22:03:21 WARN]: Exception in thread "pool-3-thread-13" [22:03:21 WARN]: org.apache.commons.lang.UnhandledException: Plugin Highscores v 2.0.0-38 generated an exception while executing task 22 at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyn cTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at nl.lolmewn.highscores.workers.ScoresSaveThread.run(ScoresSaveThread.j ava:49) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java :53) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyn cTask.java:53) ... 3 more
[22:03:51 WARN]: Exception in thread "pool-3-thread-5" [22:03:51 WARN]: org.apache.commons.lang.UnhandledException: Plugin Highscores v 2.0.0-38 generated an exception while executing task 22 at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyn cTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at nl.lolmewn.highscores.workers.ScoresSaveThread.run(ScoresSaveThread.j ava:49) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java :53) at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyn cTask.java:53) ... 3 more
Also noticed when this plugin runs for a few hours, TPS goes to the gutter.
@Lolmewn
Just wondering if any progress has been made on a fix for the error shadow posted. Great plugin, spammy errors.
Sir what is this error?
It keeps spammed in my console. :(
please add web-end support. this would be a such nice feature to have!
@Absentee23
Wow, that's sloppy of me. In the first lines of the description... and it's not even implemented (yet). It's possible, if Stats has snapshots enabled, but even then - Highscores has no code yet to calculate those scores.