[INFO] FirstLastSeen v0.10 - Track first join and last part times [1.1-R4]

Discussion in 'Inactive/Unsupported Plugins' started by NuclearW, Jun 22, 2011.

  1. Offline

    NuclearW

    FirstLastSeen - Track first join and last part times
    Version: v0.10

    FirstLastSeen keeps track of a players first join time, and their last logout/kick time, and provides simple commands with which to access that data.

    FirstLastSeen also has the ability to important firstseen and lastseen times from Towny, to do this enabled ImportTowny in the config file, once complete it will disable ImportTowny again.

    FirstLastSeen supports and is tested with PermissionsEx. FirstLastSeen also supports default Bukkit Permissions! And will support any permissions plugin that does the same. FirstLastSeen also tentatively supports Permissions 2.7.4 and 3.1.x, but is not tested against these.

    Translation can be accomplished with the lang file the plugin will create, simply change the wording and place the <date> and <player> tags accordingly.

    FirstLastSeen has been translated into German, Spanish, and Polish:
    FirstLastSeen will broadcast a message to your server when a player first joins. To modify or disable this feature, simply edit the string in the "lang" file.


    If you translate this plugin I would be very grateful if you would send me your lang file so that I may share it with others in this post.

    Features:
    • Logs first join time.
    • Logs last part time.
    • Announces a player's first join.
    • Can import times from towny.
    • Lets server owners edit their first join times all the way back to the age of disco!
    • Impartial name targeting for online users, exact name searching for the offline.
    • Translation file to let you change the messages to whatever language you require.
    • Supports PermissionsEx, Permission 2/3, Bukkit Permissions, and defaults to OP.
    • Has a static methods API to allow other plugins to access FirstLastSeen data easily.
    Commands:
    • /firstseen [player] - Displays first join date for that player
    • /lastseen [player] - Displays last part date for that player
    • /seen [player] - Displays both first join and last part date for that player
    Permissions:

    Nodes (open)

    • firstlastseen.* - Implies all other firstlastseen permissions nodes.
    • firstlastseen.firstseen - /firstseen
    • firstlastseen.lastseen - /lastseen
    • firstlastseen.seen - /seen


    API:

    For Developers (open)

    FirstLastSeen contains two static methods in its main class "FirstLastSeen", they are "getFirstSeenLong(String playerName)" and "getLastSeenLong(String playerName)"

    To use these, you must do the following:
    • Add FirstLastSeen to your "depend" in your plugin.yml
    • Add the FirstLastSeen.jar to your build path
    • Call FirstLastSeen.getFirstSeenLong or FirstLastSeen.getLastSeenLong whenever you need it!
    The long data returned is of the same type as System.getCurrentTimeInMillis();, which is to say it is the unix timestamp in milliseconds.

    FirstLastSeen's methods will return -1 when it encounters an error, or when there is no data, so be sure to check for -1 on your returned long!


    Download FirstLastSeen

    Changelog:
    • Version 0.10
      • Updated for new event system
    • Version 0.9
      • Added static methods API to allow FirstLastSeen data to be easily accessible by other plugins.
    • Version 0.8
      • Now adds players on first load who were already in the server.
      • Now with ability to color messages in the lang file with the & color codes
    Older versions (open)

    • Version 0.7
      • Supports Bukkit Permissions and Permissions 2/3
    • Version 0.6
      • Added announce to server on first join.
    • Version 0.5
      • Fixed a bug on unix-based hosts relating to file duplication in my fix for case-insensitivity.
    • Version 0.4
      • Case-insensitive searching of players.
    • Version 0.3
    • Version 0.2
      • Multi-language support added
    • Version 0.1
      • First release.
     
    AS1LV3RN1NJA and MrConfig like this.
  2. Offline

    Kainzo

    Understandable, I guess I'll have to dig up some coding to get some player dat working.
     
  3. Offline

    NuclearW

    Look at ChangeDat for some dat code.
     
  4. Offline

    darkhelmet

    What method are you storing the date format in? I'm trying to read it using another tool so I have a better report of all our users. Just trying to read it back in another language.
     
  5. Offline

    NuclearW

    Unix timestamp in milliseconds.
    Just / 1000 for the unix timestamp.

    Glad to hear of another person using it, though.
     
  6. Offline

    rustayne

    Nice plugin. Look forward to having this in my mix. Will help me keep track of how often my members play. Thanks for the plugin.
     
  7. Offline

    NuclearW

    Confirmed working in CB1060
     
  8. Offline

    Chumper

    Do you plan to integrate JSONAPI?
     
  9. Offline

    killertudse

    Hi. I would love to translate it to danish, just can't find the .lang file?

    [edit] Lol i'm blind. Found it :-D I'll be working on danish lang file.

    Done. I'll send it to you..:)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  10. Offline

    ST-DDT

    Nice Plugin, works fine on 1185

    When plugin is enabled the first time using the /reload command, all online players won't have a first seen entry and will never get one.

    Please add propper fileextesions like .txt/.data/.config

    Can you add timeformats to config file?

    I attached the
    German Translation (Deutsche Übersetzung)
     

    Attached Files:

    • lang.txt
      File size:
      242 bytes
      Views:
      3
  11. Offline

    imaxorz

    This is a very useful plugin, thank you :)
     
  12. Offline

    ThePoopfish

    Love the plugin just wish it was more colorful :]
     
  13. Offline

    NuclearW

    Fixed players not being added on first run with reload not full start.

    Time formats follow whatever your java environment is set to.

    Thank you for the translation it will be up shortly.
    Thanks
    Wish granted, you can now use the & color codes in the lang file.
     
  14. Nice :) Thanks man.
    Any chance you could move this to BukkitDev? Much easier when everything is in one place.
     
  15. Offline

    NuclearW

    Not to be a spoil sport, but probably not unless it's absolutely necessary. Thanks for using this plugin, though.

    As a dev, I don't much like BukkitDev, and I don't have the time to pour into it to learn it; sorry.
     
  16. Fair enough, everyone has their reasons I guess; although the way things are looking you may have to eventually.
     
  17. Offline

    BlancoLanda

    Cool, very cool! I'm now officially using this in my server ^^. It would be nice if you add, like you did with Towny, a configurable option to make this only work when people joins AND USES AUTHDB plug /login command.

    Because I have an option to make people register at the website before they can, and it's better if these people gets Welcomed when they are able to use /login command. I don't know if you can understand me, but I think it's possible to do because AuthDB is open source.
     
  18. Offline

    ensirius

    Can you write some API to delete player from WG region when inactive 2weaks? or maybe from owner,if owners not remaining,delete region,would be very great :)
     
  19. Offline

    Sich

    Interesting thanks, but can you add mysql support ? For have persistant data and to retrieve this information for a website.

    Thanks :)
     
  20. Offline

    1101001

    Awesome plugin, filled the hole which removing towny left in my server, shame i already deleted it before i installed this plugin so everyone's data is set to today. It isn't officially #1597 but it's working fine on my 1597 server, just thought i'd let you know. ;)
     
  21. Offline

    NuclearW

    Thanks, I didn't figure this needed any specific updating but it's good to know it works on the new RB.

    If you look for some old backups you can still give importing a go, but I'm glad you enjoy it either way.
     
  22. Offline

    digitalink2008

    Hey Thanks for the plugin NuclearW. You ever think about ever doing anything like /lastjoined # ?

    I had a need the other night to lockup the last few people that newly joined the server. Thought it might be logical for that to exist in your plugin.

    Tis my suggestion for ya.

    Thanks,
    D.
     
  23. Offline

    NuclearW

    Updated for new event system
     
    AS1LV3RN1NJA likes this.
  24. Offline

    Vince

    Love ya nuke :)

    --
    VMAN411GAMER
     
  25. Offline

    Doggyroc

    When i have R6 it wont start properly
     
  26. Offline

    NuclearW

    I uploaded the wrong file, the new one should be up now.
     
  27. Offline

    md_5

    Long time no see NuclearW. You will notice that this thread has now been placed into the Inactive Plugin subforum.
    If you wish to revive this plugin, please ensure that you update and test compatibility with the latest recommended Bukkit build before reporting your original post, asking for it to be moved back to the release forum.

    Thanks for your time.
    md_5
     

Share This Page