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.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit