Advanced LastSeen Note: This plugin is a beta version atm - there are no critical operations, but, however, use on your own risk. If you find any bugs, please post them here Download: <Edit by Moderator: Redacted mediafire url> I'm one of the admins of a german server and as we are not a freebuild, but a medieval server, sometimes it's important to know if a user is active or left our server behind (to remove his buildings and deactivate his LWC locks). For this purpose, we've used the LastSeen Plugin from Hafnium for months but the provided information wasn't enough. Thus, I've decided to create a new plugin: Advanced LastSeen This is my first Bukkit Plugin and thus it's not perfect. Many improvements will be done soon! Current Version: V0.1 (Initial Release) Features: * Saves the following infos per user: last logout, last login, first login, total number of logins, total playtime * * Saves the last 10 Logouts as History * Generates a online.txt list that contains all online players, each seperated by ";" (basic hook for php to read out) * Permissions Important: All Data is saved by this plugin, thus all statistics will start within the first activation! * at the moment, the data.yml contains some more information: last login Date, last logout Date. Saving this is in fact not needed for ingame querys, but makes it possible to read the data.yml file itself (e.g. if you can't exactly remember the name of the player you are looking for). Permission Nodes: * lastseen.query.name - Basic Query: /lastseen <username> * lastseen.query.list - History Query: /lastseen list <number> * lastseen.query.advanced - Advanced Query: /lastseen advanced <username> * lastseen.query.advanced.loginCount - Additional Option: displays the loginCount in the advanced view * lastseen.query.advanced.playtime - Additional Option: displays the playtime in the advanced view * lastseen.query.advanced.session - Additional Option: displays the last session time in the advanced view To-Do: * Fix the online.txt issue (High) * Rewrite Code (High) * Add more permission nodes (Medium) * Add Config (Medium) * Make it MySQL based (Low) * Add more Features (Low) Commands: * /lastseen <username> * /lastseen list <number> * /lastseen advanced <username> Changelog: Version 0.1 * Initial Release
Love the addon, but I keep getting this error when people logoff my server. 13:40:11 [SEVERE] Could not pass event PLAYER_QUIT to LastSeen java.lang.ArrayIndexOutOfBoundsException: 1 at com.dawodo.LastSeen.LastSeenPlayerListener.updatePlayersOnline(LastSe enPlayerListener.java:98) at com.dawodo.LastSeen.LastSeenPlayerListener.onPlayerQuit(LastSeenPlaye rListener.java:177) at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.ja va:250) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:310) at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConf igurationManager.java:145) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:611) at net.minecraft.server.NetworkManager.b(NetworkManager.java:222) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75) at net.minecraft.server.NetworkListenThread.a(SourceFile:105) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311) at net.minecraft.server.ThreadServerApplication.run(SourceFile:422) If you need any other information just let me know.
Mh, I do know that the online.txt Updater is a bit buggy (I want to fix this asap), but it usually shouldn't throw errors like this. If you don't need the online.txt PHP Hook, then consider using this hotfix instead: <Edit by Moderator: Redacted mediafire url> (it just disables the online.txt feature - There will be a config and some more features soon, but I don't have too much time next week :/ ) Please tell me, whether the hotfix solved your problem (for now)
Hey, first of all; great plugin! Secondly, I'm wishing for some better formatting of the list option, either actually have separate lines for each entry, or at least color nicks different from the rest of the blob of text that's being shown.. Thirdly, is it really necessary to list the same player multiple times in a row? maybe just summarize like "player logged off 3 times, last was (x hours y minutes)"? Keep up the good work! <3
i'm running CB 820, and LS0.1, and whenever i (as admin) attempt to do the /lastseen command, it returns this in the console:: Code: Error: Unable to perform command 'lastseen list 1' from user 'empirebattles' ... permissions are good, and nothing funky has been going on otherwise...but for me, this plugin is dead in the water >.>
Great! REQ: Please add custom messages, so we could translate the plugin for other native language players.
@stargateanubis14: I tested it on minecraft with bukkit and no other plugins, too. Usually it allows access to every command if the user is OP. Maybe something changed in the new build. Next Version will be for #860. Release is probably tonight (Rewrite, Config, Bugfix, some new features).
@Firehunter23 @hittingray I switched to Statistician Tracks Many Player/Server statistics, online/offline, lastseen etc