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

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

     
  1. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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:


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


    API:


    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

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

    This post has been edited 8 times. It was last edited by NuclearW Mar 1, 2012.
    AS1LV3RN1NJA and MrConfig like this.
  2.  
  3. Offline

    spunkiie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    REQ: Please add custom messages.

    I will for sure use it on my 300+ server :)

    TY
  4. Offline

    EvilPeanut

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    A Nice Toy, But What is The Point in it? :D
  5. Offline

    EvilPeanut

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thinking about it, thats pretty awsome! :D
    Thanks for making this, im pretty sure this is an original idea! :D
    Il have to try it out :)
  6. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What sort of custom messages do you want to see in the plugin?

    Also, thank you.
    Thanks?

    Hope you find it useful.
  7. Offline

    spunkiie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @NuclearW

    Thank you for your quick reply :D

    Well, I want to change default messages like:

    "Last seen on"
    "First seen on"
    "No record"

    So I can make your plugin speak my users native language :)

    TIA
  8. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ah, multi-language support, of course, I will get to work.
  9. Offline

    spunkiie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Also, I'm on Linux using my language locale: (PT-BR) but the time is still showing in english :\
  10. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I believe this is controlled by the Java implementation of date formatting, and is out of my control. I will ask and see if there is something I can do, but I believe you need to also set your Java locale?
  11. Offline

    spunkiie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeap, Tried to set the locale with -Duser.language= without success :(
  12. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Updated to v0.2, now supports translation via a lang file, it should also attempt to use the default locale set by the JVM for the date.

    Please let me know how it works.
  13. Offline

    spunkiie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Cool, will test now
  14. Offline

    spunkiie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Works like a charm :D

    TY, I'm running on my server right now
  15. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @spunkiie

    Glad to hear it works, if you could PM me your translated lang file so I can share it with others I would very much appreciate it.
  16. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Updated to Version 0.3, now with less 1AM typo's, and support for PermissionEx.
  17. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Confirmed to work in 928
  18. Offline

    spunkiie

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    REQ: Please add support for case INSENSITIVE queries.
  19. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Confirmed working in 935.


    I will do so in the next version as soon as i get home, this will take some time, however, so please understand until next week.
  20. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Confirmed working in 953.

    @spunkiie, Version 0.4 now supports case-insensitive player searching for Unix-based servers.
  21. Offline

    dbizzzle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hello, I would like to see if it posted your lastseen time on login?
  22. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If you mean does the plugin set your lastseen time when you first log in, the answer is no.

    It only sets the lastseen time when a player leaves the server.

    Does this answer your question?
  23. Offline

    dbizzzle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No what I mean is could you make it so when you log onto the server "You were last seen on mm/dd/yyyy" comes up in the chat
  24. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ah, I understand now. I'll consider this for the next version.
  25. Offline

    dbizzzle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah or make it so you can add it to another plugin that already states stuff on joining such as autoannouncer, this way it would not interfere and you could colour it and make it say anything you want other than "You were last seen on"
  26. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You can change anything this plugin says using the language file, this message would be no different.

    I am not sure what you mean by interfering with another plugin, however, as all plugins get a chance to respond to a player logging in.
  27. Offline

    dbizzzle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh, I see but it would be nice to have the message have customizable colour to match with other messages at login, Thanks!
  28. Offline

    Techykid3

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This looks like an awesome plugin! Trying it today!

    Edit: After trying it: Perfect! All you need now is the custom first join messages.


    Like: It would check the world's players folder to see if a player has joined before, and if so, it disables the message for them, if they are brand new, never seen before, then it will say Welcome {PLAYERNAME} to the server!, but if it was customizable too, it would be AWESOME!
  29. Offline

    MrConfig

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I use it mostly for /firstseen to know the first time a user connected and it's working great. Thanks!
  30. Offline

    NuclearW Citrullus lanatus Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    And so it is, in v0.6
  31. Offline

    Leon167

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nice Plugin.
    But how can i color the "Welcome {PLAYERNAME} to the server!" ?

Share This Page