[CHAT]Chatlog 0.2.3 - browse sent chat messages [766]

Discussion in 'Inactive/Unsupported Plugins' started by asdaarg, Apr 1, 2011.

  1. Offline

    asdaarg

    Chatlog
    Version:v0.2.3
    • autocreation of config file
    • uses NSCommand now
    Description:

    Simple plugin that allows players to read sent messages when they were afk or offline or just forgot what was said by who and when. It also filters chat messages from non-chat messages (can be turned off) into separate files (speeds up loading the files, especially if you get a lot of error messages and stuff that your plugins spew out).

    Downloads:
    NSCommand <-- Required
    chatlog
    Source and old versions

    Commands:

    /page up - show previous page
    /page down - show next page
    /page up <i> - go up i pages and show that page
    /page down <i> - go down i pages and show next page
    /page - show current page again
    /page end - show last page (and loses page pointer making next page command refer to the end)

    Permissions (optional):

    chatlog.page.up
    chatlog.page.down
    chatlog.page
    chatlog.page.end

    config.txt:

    MSGtimeformat - simpledate format of time
    MSGdateformat -simpledate format of date
    MSGentryformat - format of each message entry
    pgsize - length of a page
    serverlog=server.log usually
    chatlog - chatlog file when using filter
    nonchatlog= - nonchatlog file when using filter
    filterchat - filter chat messages and non chatmessages into separate files
    loadserverlog - load the server log at startup
    loadchatlog - load chatlog at startup

    Changelog:
    v0.2.3
    • autocreation of config file
    • uses NSCommand now
    v0.2.2
    • Setting either time/date format to empty string will result in it not being displayed
    • chatlog and nonchatlog now stored in plugin data folder
    v0.2.1
    • Fixed bug when a line in server log is less than 30 char long (such as in errors)
    v0.2
    • Added option to load server log
    • Added option to filter chat messages from log, putting chat messages and non chat messages in separate files, and clearing server log
    • Added option to load filtered log
    • Added option to specify server log,chatlog and nonchatlog filenames
    v0.1
    • Initial Release
    [/URL]
     
    domavoy likes this.
  2. Offline

    Jerry Larsson

    Nice work! :)
     
  3. Offline

    1lann

    Nice plugin! But where are the logs stored?
     
    thecoolwolf likes this.
  4. Offline

    asdaarg

    They are not stored in any files and are gone if you restart or reload the server. I'm thinking about adding the option to load the server.log file so you have the full history.
     
  5. Offline

    nichiatu

    which means they're stored in memory?
     
  6. Offline

    asdaarg

    Yes.
     
  7. Offline

    captainbinary

    This is brilliant, i have always been annoyed at the fact i cannot see what i have said to people, and command help files sometimes get cut off, you know the score.

    Reading from the log file would be a good feature.
     
  8. Offline

    Phealoon

    I like the chatlog plugin but I have a thought. What if you made it so that instead of typing /page up or /page down etc, users could just type "p u" or "p d". It would be much quicker and easier.

    Also, where is the config file, I installed Chatlog on my server, but I never saw a chatlog config file.

    -Phea
     
  9. Offline

    asdaarg

    You create the config file in plugins/chatlog/
    You can also change the commands by putting these in it:
    CMD_page_up=p u
    CMD_page_down=p d
    Note: make sure you don't have a trailing line at the end of the file.
     
  10. Offline

    Kartus

    suggest: configvalue for maximum entries logging in chatlog.
     
  11. Offline

    asdaarg

    Good idea. It could preserve memory if you have a big file. Then again you could just cut out part of the log into another file when it gets too big.
     
  12. Offline

    Kartus

    Can you please move your log files into "/plugins/chatlog" ? this is a must cause of bukkit plugin guidelines.

    i want to get this MSGtimeformat and MSGdateformat working:
    Code:
    MSGtimeformat=HH:mm
    MSGdateformat=
    MSGentryformat=§e$1 §b$2 §a$3 §f$4
    pgsize=10
    serverlog=server.log
    chatlog=chat.log
    nonchatlog=nonchat.log
    filterchat=true
    loadserverlog=false
    loadchatlog=true
    but i will get crappy result in chat: [​IMG]
    any idea to help?

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

    asdaarg

    I guess I could make it bypass the date format if you have it like that (it uses the java simpleformat function)
    Yes
     
  14. Offline

    Kartus

    Thanks, it's working 0.2.2 with this config:
    Code:
    MSGtimeformat=HH:mm
    MSGdateformat=
    MSGentryformat=$2 $3 $4
    pgsize=10
    serverlog=server.log
    chatlog=chat.log
    nonchatlog=nonchat.log
    filterchat=true
    loadserverlog=false
    loadchatlog=true
    but there aren't colors, all is white.
    when i set colours like MSGentryformat=§e$1 §b$2 §a$3 §f$4

    i got this:
    [​IMG]
     
  15. Offline

    asdaarg

    It works fine for me. Maybe your text editor screws § up somehow
     
  16. Offline

    Kartus

    i tested it WITHOUT EssentialsChat.jar and same issue. got same "ÿ" issue in /motd of plugin "MCDocs" when using with Essentials.jar. I think its issue with Essentials.jar.
     
  17. Offline

    asdaarg

    Try using ## instead of §
     
  18. Offline

    Kartus

    it works. thank you very much!
     
  19. Offline

    Kartus

    when will this be updated for #733+ ? At me it's broken.
     
  20. Offline

    asdaarg

    It works for me. Could you describe the problem?
     
  21. Offline

    Kartus

    it's working fine on #733. Sorry and thanks.
     
  22. Offline

    Kartus

    i don't have chat.log or nonchat.log any more since weeks. please can you help me?

    my config:
    Code:
    MSGtimeformat=HH:mm
    MSGdateformat=
    MSGentryformat=##b$2 ##e$3 ##f$4
    pgsize=10
    serverlog=server.log
    chatlog=chat.log
    nonchatlog=nonchat.log
    filterchat=true
    loadserverlog=false
    loadchatlog=true
     
  23. Offline

    asdaarg

    loadserverlog=true
    Since thats the input that is filtered into the two other files.
     
  24. Offline

    EpicATrain

    Any change you can make it more readable in the chat.log file? By that I mean, more reader friendly such as having each message on a different line? A configurable option such as that would be very handy.
     
  25. Offline

    asdaarg

    Its probably because you are using notepad.
     
  26. Offline

    EpicATrain

    Indeed you are correct, What should I be using?
     
  27. Offline

    asdaarg

    Try wordpad or notepad++
     
  28. Offline

    Kartus



    it's not working. bukkit #740
    i have chat.log and nonchat.log files in /plugins/chatlog. But chat.log is empty and nonchat.log filled up with full server.log (including chatlines), so it seems like a clon of server.log.

    My config is now:
    Code:
    MSGtimeformat=HH:mm
    MSGdateformat=
    MSGentryformat=##b$2 ##e$3 ##f$4
    pgsize=10
    serverlog=server.log
    chatlog=chat.log
    nonchatlog=nonchat.log
    filterchat=true
    loadserverlog=true
    loadchatlog=true
     
  29. Offline

    Lykkepillen

    Any ETA on a testet 766 version?

    -Thanks in advance :)
     
  30. Offline

    asdaarg

    That's strange, it works for me.
     

Share This Page