OnSign
This companion plugin to OnTime provides a sign based solution to share an individual player's and the server's top player's OnTime data. It also supports OnTime "shop" Rewards, which give players control over the OnTime Rewards they receive. A MySQL database is required to use OnSign.
Important Notes on V2.0.x
In order to use this latest version of OnSign, the OnTime plugin must also be upgraded to V4.1.2 or later.
Player Signs
For a specified player, the player's name and any combination of up to three of the following can be shown on a sign:
- status (online, offline, or AFK)
- date/time of last login or logout (changes when players come and go)
- date/time of last login (only changes on each login)
- total play time (OnTime) on the server
- total play time for the current day
- total playtime for the current week
- total playtime for the current month
- total votes cast for the server
- total votes cast for the current day
- total votes cast for the current week
- total votes cast for the current month
- total referrals made to the server
- total referrals made for the current day
- total referrals made for the current week
- total referrals made for the current month
- current 'loyalty' point total
Top "Ten"
For a specified piece of data, the plugin will show the position on the list, the name of the player, and their current score. These signs are updated every day, or at an interval specified by the administrator. The following data can be shown on the "top" signs:
- total play time (OnTime) on the server
- total play time for the current day
- total playtime for the current week
- total playtime for the current month
- total votes cast for the server
- total votes cast for the current day
- total votes cast for the current week
- total votes cast for the current month
- total referrals made to the server
- total referrals made for the current day
- total referrals made for the current week
- total referrals made for the current month
- current 'loyalty' point total
Shop Rewards
These signs are linked directly to an OnTime Reward defined by an admin. When a player clicks on this type of OnSign, and they have the required balance of Points or in-game money, they will receive that reward and have deducted from their points or econ balance, the configured cost. Please [click here] to learn more about OnTime Shop Rewards.
Sign Setup
For information and setting up signs, and other plugin information please see the plugin pages tab, or click here.
Other Plugin Integration
- Vault: OnSign uses the Vault plugin to provide support to various permission plugins. The Vault.jar MUST be installed in your plugins directory in order to use OnSign.
- OnTime: OnSign sources most of the data displayed from the OnTime plugin. This OnTime.jar MUST be installed in your plugins directory in order to use OnSign.
OnSign and OnTime version compatibility
- OnSign v1.0.0 will work with OnTime v3.8.1 or earlier
- OnSign v1.1.0 will ONLY work with OnTime v3.8.2 - v3.9.0
- OnSign v1.2.0 or later will ONLY work with OnTime v3.9.1 - v3.10.3
- OnSign v1.3.0 or later will ONLY work with OnTime v3.11.0 - v3.13.2
- OnSign v2.0.0 or later will ONLY work with OnTime v4.1.2 or later
Commands
- onsign refresh
This command will refresh all signs.
- onsign reload
This command will reload the config.yml, reload from the database the sign data, and refresh all signs.
Installation
- Place OnSign.jar in your plugin folder
- Place OnTime.jar in your plugin folder Make sure you are running the correct version of OnTime!
- Place vault.jar in your plugin folder
- Restart your server / Reload Plugins
- Edit plugins/OnSign/config.yml to setup your MySQL (required) database access
- See insructions for config settings in the generated file or here
6. Restart your server / Reload Plugins if config.yml is modifed
That's it!
Change Log
For the complete change log, please click here.
V2.0.2
Compiled/Tested with Spigot/Bukkit V1.8.1; Java7; Vault 1.5.2
Fixes
- The fix added in V2.0.1 did not address all possible scenarios. This second update provides a complete fix for Ticket #21
V2.0.1
Compiled/Tested with Spigot/Bukkit V1.8.1; Java7; Vault 1.5.2
Fixes
- Fixed issue with OnSign not auto-updating the MySQL database 'uuid' column for some servers. (Ticket #21)
V2.0.0
Compiled/Tested with Spigot/Bukkit V1.8.1; Java7; Vault 1.5.2
Enhancements
- Made plugin compatible with MC v1.8, adding support for UUIDs for player identification
- Added support for 'vanishNoPacket' plugin, leaving players marked as 'offline' on signs when 'vanished' (Ticket #15)
Fixes
- Fixed 'login/logout' display on signs to properly update each successful player login and logout (No Ticket)
- Added a delay to OnSign startup, so OnTime is sure to complete its initiation first (No Ticket)
- Addressed issue where 'rank up' purchases from a sign shop could result in multiple charges for one rank. (Ticket #17)
New Commands
- onsign refresh
This command will refresh/update all signs.
How do I create a sign that shows the data such as I wanted to create a sign showing:
How many mins, hours so on how do I show that and it automatically changes to the top person?
can i recommend making this sqlite compatible so that a database is not needed?
Amazing plugin! Here's a TIP for players who can't get the signs to work, even if they are OP!
You NEED the permission onsign.admin Even IF you are opped! I just had a TON of problems on my server, and once I tried the permission (Which I thought I already had...) IT WORKED! 5/5 stars!
I have just posted OnSign V2.0.0, which is compatible with Spigot/Bukkit V1.8.1
You need to also upgrade to OnTime V4.1.2 or later to get this version of OnSign to function properly.
@Onewingseraphim
Changing the signs colors also doesnt work for me.
For some reason I can't add colors to shop signs via config.
I love this plugin. It counts votes perfectly, the only for me is sign updating.
Now the vote signs update instantly, however the top signs counting player time do not update at all. They only update when I restart the server. I also have tried lowering the refresh rate in the config with no success. Still a great plugin, thanks!
@jbhitman
It could be the same or different database, it does not matter. It does need to have a different table name than OnTime if you do use the same database.
So just for clarification. The Database that is specified should be a separate DB from ontime's or should it be using the "ontime" db and just creating a new table?
@Edge209
(Another person experiencing this problem)
My ingame name is 'hectorsouthern'
Screenshot
This is a really amazing plugin. The amount of stuff it can do - and can potentially do - is outstanding. Excellent idea and really great work! Almost impossible to believe there's only one author on this.
Does this work with 1.7? My server is running 1.7.5 and would love this, but does not seem to work. Is this just an issue with my server, or is it incompatible?
Update
Please Update To 1.7.2 Or Higher!
I have 3 servers, with the plugins configured in this way
Server1
OnTime (primaryServer: true) (Database 1)
OnSign (Database 2)
Server2
OnTime (primaryServer: false) (Database 1)
OnSign (Database 2)
Server3
OnTime (primaryServer: false) (Database 1)
OnSign (Database 2)
In this arrangement, Server 2 and 3 show the correct data, but the OnSign signs dont update to reflect new information. So, I was asking for a way to set up OnSign on multiple servers so they pull the data and update on all servers.
@Tom1324
Although your name will not fit, as long as the first 14 characters are unique from any other player's name on your server it should still work. Please show me EXACTLY how you are defining the sign, and what it looks like after you are done creating it.
Thanks.
@MinecraftAdmin
Can you explain more regarding what you mean that it is "not updating statistics"? The signs are not updating?
Please give a detailed example, as that may help me better understand what you are doing.
Thanks
Is it possible to set up primary/secondary instances of the plugin? I have OnSign's running on multiple instances pointing to the same database and its not updating statistics. Is there a workaround or a fix for it?
My minecraft name is 16 characters long and doesn't fit on the sign, so when I'm finished the sign it doesn't work..
@DarmaMoo
Yes, it will work just fine regardless of OnTime data storage. To be clear, OnSign requires mySQL.
Does this still work if OnTime is storing data on a MySql database?