Solved Bukkit Login Question

Discussion in 'Plugin Development' started by YoloSanta, Feb 20, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    YoloSanta

    Does anyone know if there's a way to completely remove this line from login in console everytime a player joins the server? https://i.imgur.com/cVNuSBf.png
     
    Last edited by a moderator: Feb 20, 2020
  2. Offline

    timtower Administrator Administrator Moderator

    @YoloSanta Think there is but why do you want that? It only shows in the logs.
     
  3. Offline

    KarimAKL

  4. Offline

    YoloSanta

    I don't want any form of tracing back a user to an ip, I want the server to be as safe as possible.

    wdym, because I've tried Loggers and that doesn't work but I could be way off
     
  5. Offline

    timtower Administrator Administrator Moderator

    Then don't give people access to the console?
    What have you tried with the logger?
     
  6. Offline

    YoloSanta

    fair enough, but I don't want any data breaches at all if you know what I mean, and by logger just trying to catch the logs before they were being sent, I've heard you can try using Log4j to do this but not sure how to set that up.
     
  7. Offline

    KarimAKL

    @YoloSanta I'm pretty sure i made a working filter with Log4j a while back, though it was just for fun, so i haven't actually been using it.

    I don't have access to the source code at the moment, but i should be able to post it here this Sunday, if you haven't made any progress by then.
     
  8. Offline

    YoloSanta

    If possible that would help thanks !
     
  9. Offline

    KarimAKL

  10. Offline

    YoloSanta

    Not sure if I just messed up or whatever but when I run the code you gave me + a few changes it just causes my server to crash, https://ghostbin.co/paste/zpxcg (everything you need should be in there)

    EDIT: I just realized the server is in offline mode, I'll disable it but it stilll causes the same problem.

    Updated Log: https://i.imgur.com/B1Tw5VE.png
    Same Code as in paste. (Note not a bungee server just in a folder named it)
     
  11. Offline

    timtower Administrator Administrator Moderator

    @YoloSanta Try pastebin instead of inages for logs
     
  12. Offline

    KarimAKL

    @YoloSanta You mentioned the server dying after enabling the plugin, are you by chance testing the code by printing out some text using System.out.println()? If that's the case, the server is in an infinite loop because it reads whatever you print out, and then prints something new, etc.
     
  13. Offline

    YoloSanta

    Ohhh that makes sense. Than if that's the case, what can I do to read the line being printed?
    Yessir.

    Got it to work!, thanks for the help! Updated Class: https://ghostbin.co/paste/uz8kc

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Feb 23, 2020
    KarimAKL likes this.
Thread Status:
Not open for further replies.

Share This Page