Console Password

Discussion in 'Archived: Plugin Requests' started by lazycat040, Jul 19, 2013.

  1. Offline

    lazycat040

    So, I have just spend my entire day looking for a sufficient plugin to suit my needs but it seems there aren't any out there. So what I would need is a plugin, that modifies the console so when a command is entered at the console level it requires a password.
    This is to protect the console to keep people from opping and banning the real people trying to play on the server.
     
  2. Offline

    C0LD_K453

    Seems legit. I'd give this a bump. :D
     
  3. Offline

    BurritoBashr

    I don't think this can be done, but I'm not a Java person so I'm not completely sure.
     
  4. Offline

    wreed12345

    The console is already protected, if it is on your computer or if you are hosting it, what would be the point of this
     
  5. Offline

    Me4502

    This is more of a bandaid solution.. Why do others have access to the console? It's better to fix that issue than this.
     
  6. Offline

    wreed12345

    Me4502 exactly what I was thinking
     
  7. Offline

    nxtguy

    lazycat040 You shouldn't give people access to the console that you don't trust.
     
  8. Offline

    UltiFix

  9. lazycat040
    This can be done with a plugin, though if they have access to the plugins too, then they could just remove the plugin that protects the console with a password.

    I can attempt to do this, but as I said above, it would be useless if they have access to plugins folder.

    EDIT: I made a BukkitDev page for this. If anyone is interested, click me.
     
  10. Offline

    Gamecube762

    I thought this was an interesting idea.
    In some cases of hosting it at home, its usually on a spare computer or the same computer that they use, the goal of this is to 'lock' the console in case someone walks up to the computer and types into the console.
     
  11. Offline

    Pawnguy7

    Would this be a log in/log out system, or on every command? Hopefully the former. Anyway, should be possible, if there is, say, a preprocess event for console commands. Not sure if there is though.
     
  12. I used ServerCommandEvent, and for the preprocess part, I just set the command to nothing.
    Here's the source if you want to see how I did it. Going to be adding the login system soon.
    https://github.com/AssistDev/ConsoleProtect
     
  13. Offline

    nxtguy


    I don't think Bukkit really focuses on on console events as the console is something every server can "trust".
     
  14. Offline

    Shevchik

    ServerCommandEvent
     
  15. Offline

    Pawnguy7

    There you have it. Should be fairly easy, then. Although, I just noticed this is in plugin requests, not plugin development.
     
  16. Offline

    EnkyHD

  17. Offline

    Nnnnneeeedddd

    Okay, I spent about 3 hours making this plugin so I hope you like it :)
    its pretty basic it has three commands one of witch is just the command that it sets the command to when you type a command when lock is on
    but the only commands you need to worry about is 'lock' and 'pass'. The command 'lock' opens a window that asks for a password that you want to use to avoid logging it in the console. the command pass would just be 'pass Password' if you forget the password you will just have to quit the console.
    this plugin was much harder than I thought so hope you like it :) <Edit by Moderator: Redacted mediafire url>

    also pm me if you get any issues
    EDIT: Also if you don't have any issues could you please respond because that is basically why i make these plugins, for the response

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

    UltiFix

    [quote uid=90708464 name="Nnnnneeeedddd" post=1763173]Okay, I spent about 3 hours making this plugin so I hope you like it :)
    its pretty basic it has three commands one of witch is just the command that it sets the command to when you type a command when lock is on
    but the only commands you need to worry about is 'lock' and 'pass'. The command 'lock' opens a window that asks for a password that you want to use to avoid logging it in the console. the command pass would just be 'pass Password' if you forget the password you will just have to quit the console.
    this plugin was much harder than I thought so hope you like it :) <Edit by Moderator: Redacted mediafire url>

    Would you mind making a plugin page for this? Or include more information.... I couldn't really understand what you were trying to say up above.
     
    Last edited by a moderator: Nov 6, 2016
  19. Offline

    Nnnnneeeedddd

    There are three commands. when the console is locked, and you type a command, it will set the command to /idonotknowthepassword witch will return you must go /pass <password>

    but the only command you have to worry about is 'lock' and 'pass'
    'lock' locks the console and asks you for a password.
    then 'pass' is how you unlock it when it is locked the usage is "pass <password>"

    Hope this is simpler :). Ned
     
  20. Offline

    Pawnguy7

    Just thought of something. Couldn't they either A), delete the plugin, or B), discover the password? Although, your ok on b, if it isn't plaintext, but I don't know anything about hashing.
     
  21. Offline

    Nnnnneeeedddd

    I suppose he could try hiding the plugin file.
     
  22. Offline

    wreed12345

  23. Offline

    Chillax_Team

    Name the folder and plugin different, ex. Towny-Extentions.
     
  24. Offline

    IanM_56

    You have bigger problems than needing a console password if people have access to the console.
     
    Williscool98 likes this.
  25. Offline

    wreed12345

    You don't get to pick your plugins folder name
     
  26. Offline

    Chillax_Team

    No, obviously not. I ment of the plugin its self.
     
  27. Offline

    RingOfStorms

    Last activity:Jul 19, 2013
    Joined:Jul 19, 2013
    Messages:1

    That is the OP's stats, obviously there is no need for this topic at this point, practically ten days later.
     

Share This Page