IPAuth
IPAuth
IPAuth is a plugin that authorizes players based on their IP address. If a player logs in from a different IP the next time they play, they will be kicked from the server before they even spawn with a configurable kick message.
Features
- Two or more IPs cannot use the same player name. [0.1]
- Maximum account limit per IP. (Default: 0 - Unlimited) [0.2]
Usage
Place in your plugins folder and IPAuth will do the rest.
How it works
When a player logs in for their first time, his or her IP is bound to their name and is logged to a file called "LOGINS" in the plugin's data folder. The next time the player logs in, a case-insensitive look-up of their name is searched for in the LOGINS file, and the IP is grabbed from there. If the IP of the player logging in does not match the one found in the LOGINS file, he or she will be kicked for a configured kick reason. If the IP matches, he or she will be allowed to play on the account.
Configuration
config.yml
kickreason: "Wrong IP or name is in use." #Kick reason for logging in as a different IP on a name already bound to an IP kickaccount: "This IP has too many accounts." #Kick reason for trying to log in as a new player on an IP that has already reached the account limit. max_accounts: 0 #Account limit per IP. 0 or less is unlimited.
Commands
/ipauth reload - Reload the server
Permissions
ipauth.bypass: false - Do not check this player's IP (good for guest accounts, but unsafe. NO ONE has this permission by default)
ipauth.reload: ops - Permission to use /ipauth reload
Source
The source can be found on GitHub, which is open to the public.
old but awesome <3
I want to put this plugin on my server but there's a feature I'd like you to add...Why just kick a player when the IP doesn't match? I think it's a good idea just to put a normal /login if the IP isn't the same don't you?
Is there a way to wipe a players data from the LOGINS File. The only way I can see to do it is to completely remove the file and regenerate it.
Are you able to check for player Static IP's, because peoples Dynamic IP's change a lot and it will come up with an error and not allowing them to join my server.
Got Wrong IP or same name is in use. HELP!! nobody else has been on my acc on this account maybe some where else how do i stop the hackers ip.
It seems either everyone or no one has the bypass? How do i just put the bypass for players and me the only person without bypass?
Is there a way to completly reverse this? I want it so that only Moderators, Admins, and Myself (Owner) are checked for IP and not Users. I want this because my server is cracked and I would like it better if it had better security.
I need it so that Staff can only log in from 1 IP and 1 IP only. I don't need this for Users because they don't have any "server-Crashing" commands.
Please respond ASAP!
Thanks!
-Lazor BreakerCraft.No-Ip.Org
@Ramirez57 Could please please update this plugin, I would like it if it had a limit for IP's per account, because of Dynamic IP's that are always changing, PLEASE! Update this with my reccomendation.
This doesn't make any sense because the player ip are always changing can't you make it so a player can have infinite ip's but a specific ip can only have 2 accounts ?
@Zacty99
i am not sure how, but you need to change the java the SERVER is running. might be in the run script (change the 6 to a 7 if it is)
Is there a way to add more than 1 ip to a single account in the LOGINS file?
There are static and dynamic ip adresses. Static = IP never change Dynamic = Ip changing most often every 24 hours delay, and is the most common. Therefore, i cant use this plugin, since counting on ppl having static ip isnt common!
@FordRacer2007
Translation: update your java
Um, could you make it so that it only reads the first 2 or 3 set of numbers(eg. 192.168.1.*) because some players - their ip's change for some reason
you could also put it in the config to chose from 0-4 It would be another great idea to add is: letting a SPECIFIC (NOT ALL) Ip join that name with command like /ipauth add <name> <ip>
Ok. So how do I either upgrade, or downgrade what my server is running? i updated my computer's java and that simply did nothing
@Zacty99
This simply means he has to recompile it to work with the really old version of java your server is running lol.
xD Hi Strahil. I'm the guy with the IPAuth problems. Everytime i start my server, it doesnt work (as in wont create folder in /plugins folder) all it says is [SEVERE] Could not load 'plugins/IPAuth.jar' in folder 'plugins' org.bukkit.plugin.In validPluginException : java.lang.Unsupporte dClassVersionError: ramirez57/IPAuth/Main : Unsupported major.minor version 51.0 Caused by: java.lang.U
Are there any server or system requirements in order to have this plugin work correctly? One of my friends has this server and he says it doesn't work, he tried almost everything and he can't figure it out, he's using Bukkit 1.3.1 reccomended build, he's on a Mac, and thats about it.
B 0.2 is coming. It will contain maximum accounts per IP and a fix for servers that have nicknamed players.
What is when a player restarts his router and the ip get changed ?