itzbrown4r

Minecraft Plugin: IP-Based Account Limiter

Plugin Name: OneIP-OnePlayer

Platform: Minecraft Java Edition / Paper / Spigot / Purpur

Plugin Description:

Create a highly optimized Minecraft plugin that allows only ONE player account per IP address to join the server at a time.

1. Default System

  • Only one Minecraft account can join from a single IP address.
  • If another account from the same IP tries to join, deny the connection.
  • Display a customizable message:

&cOnly one account per IP is allowed on this server!

2. Permission-Based Bypass

Players with the following permission can bypass the IP restriction:

oneip.bypass

  • Permission holders can join using multiple Minecraft accounts from the same IP.
  • They can have multiple accounts online simultaneously.
  • Players without permission remain restricted to one account per IP.
  • Support LuckPerms and other permission plugins through Vault or Bukkit permissions.

3. Admin Permissions

  • oneip.bypass – Allows multiple accounts from one IP.
  • oneip.admin – Full plugin administration.
  • oneip.reload – Reload plugin configuration.
  • oneip.notify – Receive notifications when an IP restriction is triggered.

4. Commands

  • /oneip reload – Reload configuration.
  • /oneip check <player> – Check the number of accounts connected from a player's IP (admin only).
  • /oneip info – Show plugin information.
  • /oneip bypass <player> – Display bypass permission information.

5. Configuration

Create an editable config.yml containing:

  • Maximum accounts per IP: 1
  • Enable permission bypass: true
  • Custom kick message.
  • Enable admin notifications.
  • Enable logging.
  • Support for proxy environments such as Velocity and BungeeCord.

6. Advanced Features

  • Real-time IP tracking.
  • Automatically remove IP records when players disconnect.
  • Prevent connection bypass through reconnecting.
  • Handle simultaneous login attempts safely.
  • Avoid false positives.
  • Never block players with the bypass permission.
  • Store only the information necessary for IP restriction.
  • Do not expose IP addresses to ordinary players.

7. Performance

  • Extremely lightweight.
  • Optimized for Paper and Purpur.
  • Thread-safe account tracking.
  • Minimal CPU and RAM usage.
  • No unnecessary database queries.
  • Compatible with modern Minecraft versions.

8. Final Requirements

Deliver:

  • Complete Java source code.
  • Compiled plugin .jar.
  • plugin.yml.
  • Default config.yml.
  • Installation instructions.
  • Permission setup guide.
  • Compatibility documentation.

Important: The plugin must reliably enforce one simultaneous account per IP for normal players while allowing authorized players with oneip.bypass to use multiple accounts without restrictions.

Kodari AI
KodariOct 30 at 10:42 am 2
OneIPOnePlayer
A lightweight Minecraft plugin that enforces one simultaneous player account per IP address. Uses a thread-safe IP tracking system to monitor online players in real-time, automatically removing records on disconnect. Provides permission-based bypass for authorized players, allowing multiple accounts from the same IP. Includes admin commands for reloading config, checking player IP connections, and viewing bypass status. Features customizable kick messages, admin notifications, logging support, and proxy environment compatibility. Optimized for Paper and Purpur with minimal CPU and RAM usage, ensuring reliable enforcement without false positives.
  1. Create the Paper/Spigot project metadata and default configuration.

  2. Implement synchronized login tracking, bypass permissions, and /oneip administration.

  3. Add installation, permissions, and proxy compatibility notes.

Created OneIP-OnePlayer with synchronized IP reservations, bypass permissions, admin commands, configurable messages/settings, and installation/compatibility documentation. Proxy setups must forward each player’s real IP for accurate limits.

To get the compiled JAR: click Compile in the top bar (on phone: ⋮ → Compile Project), then click Compile in the window. After it succeeds, click Download on the build. Put the JAR in the server’s plugins folder and restart.

itzbrown4r

How to give the permission

Kodari AI
KodariOct 30 at 11:02 am 1

With LuckPerms, run these commands in-game as an admin or in the server console:

  • Give one player the bypass:
    /lp user <player> permission set oneip.bypass true

  • Give a group the bypass:
    /lp group <group> permission set oneip.bypass true

  • Give a player plugin admin access:
    /lp user <player> permission set oneip.admin true

oneip.admin grants administration access; oneip.reload allows reloading the config, and oneip.notify receives restriction alerts. To grant those separately, use the same command with the permission node.

Replace <player> or <group> with the actual name. To remove a permission, use false instead of true.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
8 461
src/main/java/com/kodari/oneip/OneIPOnePlayerPlugin.java
package com.kodari.oneip;

import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class OneIPOnePlayerPlugin extends JavaPlugin {
    private IpLimitManager ipLimitManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        ipLimitManager = new IpLimitManager(this);
        Bukkit.getPluginManager().registerEvents(ipLimitManager, this);

        PluginCommand command = getCommand("oneip");
        OneIpCommand oneIpCommand = new OneIpCommand(this, ipLimitManager);
        command.setExecutor(oneIpCommand);
        command.setTabCompleter(oneIpCommand);
    }

    @Override
    public void onDisable() {
        if (ipLimitManager != null) {
            ipLimitManager.clear();
        }
    }
}