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 you get the signs to show admin and ops online time and votes? its showing normal players but not the admin/ops and I can't seem to find a setting for enabling them to be on the signs
http://dev.bukkit.org/bukkit-plugins/onsign/tickets/6-afk-not-working/
@masamitu Please open up a fault ticket and provide the requested information as well as provide answers to my questions below.
The code generating the error is actually inside of bukkit. The software call that OnSign is making is not passing any data to the bukkit software, so at this point I don't think that there is anything I can 'fix' in this case.
Can you tell me if this is happening on all signs you have defined or only one?
What version and build of bukkit are you using? If I can load the same on my test system I may be able to figure out something more, that may be helpful if a ticket needs to be opened against Bukkit.
2013-10-04 14:06:16 [SEVERE] Error occurred while enabling OnSign v1.2.0 (Is it up to date?) java.lang.NullPointerException at org.bukkit.craftbukkit.v1_6_R2.block.CraftSign.<init>(CraftSign.java:17) at org.bukkit.craftbukkit.v1_6_R2.block.CraftBlock.getState(CraftBlock.java:243) at me.edge209.OnSign.OnSignHandler.updateSign(OnSignHandler.java:174) at me.edge209.OnSign.OnSignHandler.updateTopSigns(OnSignHandler.java:101) at me.edge209.OnSign.OnSignHandler.updateAllSigns(OnSignHandler.java:75) at me.edge209.OnSign.OnSign.onEnable(OnSign.java:156) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313) at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290) at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
@MrAusnadian
I have not yet issued version 1.2.0 which includes support for the "top" signs. I hope to have it up yet this weekend. Please stay tuned .....
Doesn't seem to be working with CraftBukkit 1.6.2? It just says saying "%top" etc on the sign. Nothing in the logs, but console says it's loading.
@sakura_blades
Yes, I can add such options. Do me a favor and open an enhancement ticket and specify everything you think you would like to see on signs. I'm over due for an update for this plugin anyway, so it won't be long before I get around to this.
I guess I didn't look too much into this OnTime/OnSign plugin too well the first time, but this is only capable of showing information based on a Player basis?
I had hoped this would be a "top player" + "their play time" or "most votes cast" by "player".
Unfortunately without the ability to show on a Top Basis of all players, I cant' think of a use for this addon plugin, unless I were to use it to show staff online/playtimes.
Is it possible to implement this to this plugin?
Top Voter:
Sammy
56 Votes
-or-
Top Playtime:
Victor
178 Hours
@Edge209
Sounds great I will put a ticket in right now. Enjoy your vaction!! No rush and I hope you have a great time. I am just glad that you are willing to share your work with the plugins with us.
@MinecraftFrankCastle
There is no work around at this time for that issue. I am away from home on vacation so I can't make any fixes until I get back late this week. Please open a fault ticket so I don't forget to find a way to fix it.
@Edge209 I have a quick issue/question. I have a player name of CaptThreepwood. with the extra %% in front of the name his user name will not fit on the sign. Any work around to make it so I can make a sign for him. He is one of my moderators.
@Pakrivalooo
Yes, I will make that change because it is very misleading.
@Edge209
Ahh ok. Thanks for the reply. :D If MySQL is required, then I would remove the line "enable: false/true" from the config.
@Pakrivalooo
I should have made it clearer in the OnSign installation requirements, but MySQL is required for the OnSign functions. When I wrote the plugin I did not implement a YML version of the data storage, I also didn't make the error collection clean enough to tell a user when MYSQL was not set up correctly.
The quickest "fix" for you would be to switch to MySQL storage of your OnTime/OnSign data, for which you will be rewarded with a richer set of OnTime functions, plus being able to use OnSign.
You could alternatively open up an enhancement ticket for me to add YML storage for OnSign data, but I'm not sure how soon I will get to that given my long list of other things I'm already working on.
Hi Edge209! :)
At first thx for your Plugins. ;) I have the same problem as SjorsMaster.
Config of OnTime:
Config of OnSign:
Console output on serverstart:
You can see, that OnSign try to connect to MySQL, but in the config is MySQL disabled. ;)
@SjorsMaster
Can you please provide some additional information about how this is not working for you? Can you supply some console log messages that the plugin is generating.
I can't fix it if I don't know what is going wrong.
What need this plugin cus it isnt work
Looks GREAT! I will be testing it out soon.