[Admin tool] IP mask

Discussion in 'Archived: Plugin Requests' started by iwitrag, Apr 15, 2014.

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

    iwitrag

    Hello,

    I need a plugin, which will change IP of a player in output of other plugins.

    Description:
    Well, simply sometimes you want to make another account on your server and watch players, hackers or just play. But players on my server has ability to check IP in order to find-out accounts of any other player.
    I want to change my IP (without proxy or something like that) so when players try /authme accounts /authme lastlogin /whois /checkip etc... it will output different IP for specified players in config.

    How it should work:
    Well, there should be config file, where you can set which players should have IP mask and what IP it should output for them (instead of real IP).
    So in config there can be something like:

    masks:
    - iamnotadmin: 12.34.56.78
    - anothernick: 55.66.77.88

    and when any players in-game tries to get IP of one of these users, it will output not their true IP but that mask.
    If somebody writes:
    /getip admin - it will output real IP of admin
    /getip iamnotadmin - it will output 12.34.56.78 even if it's admin account

    Anytime, when any plugin will try to read player's IP, this plugin will activate and check, if that player is in masks list. If so, it will output fake IP from config instead of real IP.

    Permissions:
    None

    Commands:
    None

    I will be really thankful if somebody make this plugin for me. I think this tool can be really useful.
     
  2. Offline

    idontcare1025

    Why do you need authme? If you're on an offline mode server, we can't help. If you're on an online mode server, get rid of the plugin.
     
  3. Offline

    iwitrag

    It was example of commands so it can be easier to know what I want from this plugin.
     
  4. Online

    timtower Administrator Administrator Moderator

    We can't change their connection without disconnecting the players. If it is already possible.
     
  5. Offline

    iwitrag

    I don't want to change the real IP adress, it will just output something else when any plugin will try to get player's IP.
     
  6. Offline

    Onlineids

    How are they getting their ip in the first place?
     
  7. Offline

    iwitrag

    Well I think that every plugin needs to use getAddress() method from bukkit itself, so the plugin could modify returning values of this depending on config.
     
  8. Offline

    Onlineids

    Why do you care if a plugin uses it? If a plugin you have is using it for malicious purposes remove it
     
  9. Offline

    iwitrag

    Sorry I don't understand you - I only told the way how can be the plugin made.
     
  10. Online

    timtower Administrator Administrator Moderator

    We can't change that value without disconnecting the player like I said
     
  11. Offline

    iwitrag

    Why do you want to disconnect somebody?
    I don't clearly understand...

    getAddress() method returns IP address of a player so that plugin could simply modify that method and return something else depending on nick... it does not really matter if player is online/offline, because we will do nothing with the real IP of that player.
     
  12. Offline

    Onlineids

    wish it was that easy
     
  13. Online

    timtower Administrator Administrator Moderator

    iwitrag We can't "Simply" modify that! We can't modify it at all without modifying bukkit.
    And if we manage to modify it: I believe that the server is using it to send data to the player so it will disconnect the player
     
  14. Offline

    iwitrag

    So you say this plugin is impossible to make?
     
  15. Online

    timtower Administrator Administrator Moderator

    I indeed say that.
     
  16. Offline

    iwitrag

    Is it REALLY impossible or are you just lazy ? :p
    (just joking)
     
  17. Online

    timtower Administrator Administrator Moderator

    I will take that as a retorical question.
     
    Garris0n and iwitrag like this.
  18. Offline

    Garris0n

    Well this is the actual problem, so why don't you fix it instead?
     
  19. Offline

    iwitrag

    It's not a problem, it's a feature for our players.
     
  20. Offline

    Garris0n

    That is extremely irresponsible. You're telling me I could go on your server and DDoS every player online?
     
    timtower likes this.
  21. Why don't you just make it so other players don't have the perms to search for the i.p of the player(s)
     
  22. Offline

    iwitrag

    Where did I say that? O_O Don't do that you hacker, you will get banned!
     
  23. Offline

    Garris0n

    You're enabling such attacks by giving away the ip addresses of all your players. I suggest removing that "feature" immediately.
     
    timtower likes this.
  24. Offline

    iwitrag

    Okay thanks for an idea.
     
Thread Status:
Not open for further replies.

Share This Page