[ADMN] UserLog v1.2 - Log player info on join [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Kaikz, Jun 17, 2011.

  1. Offline

    Kaikz

    UserLog - Log player names on join.
    Version: v1.2

    I often disable the whitelist on my server for short periods of time, so to prevent users from needing to be whitelisted after it's enabled again, I'd rather just log all players to a file.

    Features:
    • No config, no setup hassle. Just leave it to operate. :)
    • Logs just names to users.txt and info like below to users-info.txt (name ip date jointime)
      • Kaikz 127.0.0.1 2011/7/4 14:13:02
    • Requires Permissions 2.7.4+
    • Clear all logs on the fly with one command: /userlog (Permission: userlog.admin)
    Download:
    Source Code:

    @github.com


    Changelog:
    • v1.2
      • Added date to the info logging.
      • Added /userlog command. (Permission: userlog.admin)
        • This command will be the base for all future commands, however it only removes all logs, then creates new ones for now.
    • v1.1
      • Added a 'user-info.txt' file. Logs player names, IP and 24 hour time they joined.
    • v1.0
      • Initial release.
     
  2. Offline

    Diemons

    Add functions please!
    To write:
    Nick. IP address. logon time. and exit
    Thank you if you add!:D
     
  3. Offline

    Kaikz

    I'll add that once I manage to move my servers.
     
  4. Kaikz - Please make 2 files.
    ONE with PURE names.
    eastonch
    kaikz
    god
    jesus
    notch
    mojang
    jeb

    then another with:
    name ------- ip ------in------out----amount
    eastonch 192.168.1.1 0000 0100 5
    kaikz 192.168.1.2 - 0600 2100

    Name = IGN
    IP = IP from logon
    IN = Time in (local server time)
    OUT = Time out (local server time)
    Ammount = how many times has the player joined?
     
  5. Offline

    Diemons


    It will be fun!
     
  6. Offline

    Kaikz

    I'll add that now.
     
  7. Offline

    ChrizC

    Changelog has to have two latest versions on the thread.

    Chris
     
  8. Offline

    Kaikz

    There's only one, so meh.

    Added: IGN IP IN to users-info.txt

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  9. as-well as having users.txt?

    edit: read main post

    Thanks so much!
     
  10. Offline

    Kaikz

    :)

    Gonna make a CraftIRC plugin to list all info to the command-issuer.
     
  11. Offline

    Wiernusz

    Any chance you could throw the date in there as well? I know I have other options, but the simplicity of this is very alluring.
     
  12. Offline

    Kaikz

    v1.2: Added this + log wiping command.

    I've posted all my plugins to BukGet, if it matters to anyone. :eek:
     
  13. Offline

    Wiernusz

    Kaikz, you rock! Thank you very much.

    It doesnt seem to be saving the user history. Only the most recent person who has logged on.


    running bukkit b953

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

    Kaikz

    Hm. Odd. I can't see why it's doing this.
     
  15. Offline

    Garloth

    CraftBukkitUpToDate support doesn't work.
     
  16. Offline

    Kaikz

    I never added CraftBukkitUpToDate support... Nor does anything say anything about it.
     
  17. Offline

    Garloth

    It says theat the link is wrong.
    If you didn't add please do.
     
  18. Offline

    Kaikz

    I don't plan to support it, as I don't use it myself.
     
  19. Offline

    Alex_of_War

    When i use this plugin with the latest version of bukkit, users-info.txt only stores info about the last login.
    I do not use Permissions - that may be why. If that is the case, would you kindly be able to make users-info.txt work properly for people who do not use Permissions?
    Great plugin & much appreciated!
     
  20. Offline

    Kaikz

    I haven't had time to fix it, but I'll attempt today.
     
  21. Offline

    Zathras

    user-info.txt
    I'm still using Permissions 3.1.6 and the user-info.txt only stores the most recent login. It's not related to Permissions. It may have more to do with CraftBukkit build 1000.
     
  22. Offline

    an0x

    man why is permisson required :/ without this thats the plugin i need
     
  23. Offline

    Alex_of_War

    an0x: permissions does not seem to be required, as I am running it without. There is a bug that needs to still be addressed though, unrelated to permissions

    Ah! Kaikz, I took a look at the source code and found the problem.
    Line 196 is currently:
    BufferedWriter writer = new BufferedWriter(new FileWriter((folder.getAbsolutePath() + File.separator + usersInfo)));
    It should be changed to:
    BufferedWriter writer = new BufferedWriter(new FileWriter((folder.getAbsolutePath() + File.separator + usersInfo)),true); // true = append to existing file, or else create file if it doesn't exist

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

    Kaikz

    Yep! I fixed it yesterday but had to go out for the day before I could release it.
     
  25. Offline

    Alex_of_War

    Excellent =)
     
  26. Offline

    an0x

    thanks man now im using this exelent plugin :D
     
  27. Offline

    Alex_of_War

    Has the previously mentioned issue been fixed? I don't see any changes yet.
     
  28. Offline

    Kaikz

    I've been busy lately as school has just started again. I don't know when I'll have time, unfortunately.
     
  29. Offline

    Alex_of_War

    Okay. Time for me to learn how to make my own plugins for Bukkit, I guess! Thanks anyway.
     
  30. Offline

    xcanner

    Would love a MySQL version of this plugin, adding every connect to a table...
     

Share This Page