[ADMN|INFO] Advanced LastSeen V0.1 - Get information about players [818]

Discussion in 'Inactive/Unsupported Plugins' started by Dawodo, Jun 3, 2011.

  1. Offline

    Dawodo

    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
     
    Last edited by a moderator: Nov 27, 2016
    Martin2396 likes this.
  2. Offline

    xplosion545

    Thank you.
     
  3. Offline

    austin101

    Awesome plugin working great on my server!
     
  4. Offline

    TheNander

    Nice Plugin, *Especially* the PHP hook.
     
  5. Offline

    trevorhenrich

    i love you for this. been looking for something like this for a long time!
     
  6. Offline

    traviszech

    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.
     
  7. Offline

    Dawodo

    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) :)
     
    Last edited by a moderator: Nov 27, 2016
  8. Offline

    melwil

    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
     
  9. I have the same porblem! Please help us to fix it!
     
  10. 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 >.>
     
  11. Offline

    spunkiie

    Great!

    REQ: Please add custom messages, so we could translate the plugin for other native language players.
     
  12. Offline

    Dawodo

    @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).
     
  13. Offline

    DooBLER

    Brilliant plugin!
    Is there any info on the new version?
     
  14. Offline

    Donny

    Not working on 935. just fyi
     
  15. Offline

    Firehunter23

    would be nice to see an update for latest version
     
  16. Offline

    majorcyto

    awe i wanna use this.
     
  17. Offline

    Firehunter23

    Are you still updating this plugin?
     
  18. Offline

    hittingray

    Agreed, I'd love to see a version for CB #1000
     
  19. Offline

    DooBLER

    @Firehunter23 @hittingray
    I switched to Statistician
    Tracks Many Player/Server statistics, online/offline, lastseen etc
     
  20. Offline

    Pim1234

    it would be very nice if you could update this, i really want your plugin ;)
     

Share This Page