[INFO] LastLogin v1.2 - Displays last time user logged in [953]

Discussion in 'Inactive/Unsupported Plugins' started by speeddemon92, Apr 8, 2011.

  1. Offline

    speeddemon92

    LastLogin (Durango) - Displays last login time for users
    Version: v1.2

    This plugin was made per request found here: http://forums.bukkit.org/threads/last-login-informative-plugin.11787/

    Ever wanted to know when you or another player logged into the server last? Now you can with LastLogin! Once you login you will be greeted with your last login time. You can also check your last login at anytime and can also check the last login of any player.

    Features:
    • View your last login
    • View others last login
    Download v1.2 [953+]
    Download v1.1 [803-860]
    Download v1.0

    Commands:
    • /lastlogin - Shows the time of your last login
      Example: /lastlogin - Show your last time of login
    • /lastlogin <player> - Show the time of last login for the specified player
      Parameters: <player>: In Game Name of the player of which you wish to view the last login
      Example: /lastlogin XYZ - Show XYZ's last login time
    • /lastlogin reload - Reloads the config and time files
      Example: /lastlogin reload - Reload the config
    • [NEW] /ll - Alias to /lastlogin. Can be used in its place
      Example: /ll reload
    Example config with notes:
    Code:
    config:
        usemillitime: true
        dateformat: EEE, d MMM yyyy h:mm:ss a z
        newformat: ''
        showmotd: true
        permissions: true
        allowaliasll: true
        usetimediff: true
    
    # usemillitime - True tells the plugin to use millisecond time to store times
    # dateformat - Java time format to use.
    # newformat - Format to convert all times existing times to if not empty.
    # showmotd - True shows a MOTD when the player logs in with their last login, False only shows on demand
    # permissions - True will hook onto a permissions plugin if found or will fall back to standard options if it cannot find one
    # allowaliasll - True will allow the new /ll alias to be used. Can be disabled in case of command confilct
    # usetimediff - True will display a new time style in which it will say for how long the player has been logged in or off.
    # If usemillitime is set to true the plugin only reads dateformat. If it is set to false and newformat is  not empty all existing times will be converted.
    # Note: If a new time format is set and there is nothing to save both the date and time It may result in loss of times.
    
    Permissions:
    Code:
    lastlogin.self     # allows user to view own last login time
    lastlogin.others   # allows user to view last login for other players
    lastlogin.reload   # allows the user to reload configurations
    If you need help with finding or creating the time format code, please refer to this page: http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html

    Example lastlogin time with usemillitime set to true:
    Code:
    times:
        XYZ: '1302240358992'
    
    Example lastlogin time with usemillitime set to false:
    Code:
    times:
        ABC123: 'Fri, 8 Apr 2011 12:25:58 AM CDT'
    
    TODO:
    • Keep this plugin up-to-date and working with the latest craftbukkit build
    Changelog:
    Version 1.2 - Codename: Durango
    • Added permissions, new display format, and new command alias. [953]
    Version 1.1 - Codename: Snooper
    • Added option to disable/enable MOTD on player login [803]
    Version 1.0 - Codename: Snook
    • Initial Release [670]
     
    AS1LV3RN1NJA, bulls3y3, Ben91 and 3 others like this.
  2. Offline

    speeddemon92

  3. Offline

    Travis_Hironak

    Thanks for the update, I'll try it soon and let you know how it works. :)
     
  4. @speeddemon92
    Grammar error when a user never logged on before.
     
  5. Offline

    speeddemon92

    Haha wow...It was bound to happen :p I'll try to get that fixed by the time I add the translation file.
     
  6. Offline

    Leemur

    I still jave this problem in 1.2

    My config file looks like:
    Code:
    config:
        usemillitime: false
        dateformat: dd MMM yyyy HH:mm:ss
        newformat: dd MMM yyyy HH:mm:ss
        showmotd: true
        permissions: false
        allowaliasll: true
        usetimediff: true
    
    after restarting server, my config file looks like:
    Code:
    config:
        usemillitime: false
        dateformat: dd MMM yyyy HH:mm:ss
        newformat: ''
        showmotd: true
        permissions: false
        allowaliasll: true
        usetimediff: true
    
    and after one restart more, all my lastlogins are broken. and config file becomes:
    Code:
    config:
        usemillitime: false
        dateformat: ''
        newformat: ''
        showmotd: true
        permissions: false
        allowaliasll: true
        usetimediff: true
    
    Help me! how I must edit the config file?[/CODE]
     
  7. Offline

    speeddemon92

    Ok I think I see the problem. @Travis_Hironak this is probably the same problem you had too. when you fill out the config, if it is your FIRST time to run ONLY edit dateformat. Newformat is to convert dates from the dateformat style in the LastTimes.yml to the new format. In other words newformat should only be used like this:
    Code:
    config:
        usemillitime: false
        dateformat: dd MMM yyyy HH:mm:ss
        newformat: 'MMM dd yyyy HH:mm a'
        showmotd: true
        permissions: false
        allowaliasll: true
        usetimediff: true
    It will automatically convert the formats and move newformat into dateformat. Put the config you had after the restart and try it again. It should work with that config.
     
  8. Offline

    Leemur

    I tried that..
    after 1 restart it becomes:
    Code:
    config:
        usemillitime: false
        dateformat: MMM dd yyyy HH:mm a
        newformat: ''
        showmotd: true
        permissions: false
        allowaliasll: true
        usetimediff: true
    after 2-ond restart:
    Code:
    config:
        usemillitime: false
        dateformat: ''
        newformat: ''
        showmotd: true
        permissions: false
        allowaliasll: true
        usetimediff: true
    can you add an option "convertnewformat: false" ?
     
  9. Offline

    speeddemon92

    hmm i'll look into that and see whats going on. and i can add that when i get back to it this week hopefully
     
  10. Offline

    Travis_Hironak

    I just wanted to let you know that everything is working fine for me now, but it's maybe because I stopped the server before reloading it every time since I updated.

    I like the new way LastLogin shows the last time a player logged in. :)
     
  11. Offline

    tazguy79

    is it possible to edit the plugin so players could use a sign on their house and the sign would update when they log in?
     
  12. Offline

    zuendi123

    Can you add a command, that shows the last x users, who logged in? Like /ll list 10 or /ll list 5 ...
     
    happypumkin and King Pyro like this.
  13. Offline

    King Pyro

    i think this is a great feature :) even though you could look at server logs but then again on other hand admins could check or your log is sooo long that you cant be bothered to check it :D
    *end rant here*
     
  14. Offline

    happypumkin

    it would take forever to see who the past 10 people to log in last if the server had lots of talking though. you gotta scroll thru tons and tons of stuff.
     
  15. Offline

    TheGoodRobot

    Any chance of updating this to the newest version?
     
  16. speeddemon92
    Any chance of giving out the source so we can update it?
     
  17. Offline

    md_5

    Long time no see speeddemon92. 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