narutothegoat8183

Create a Minecraft plugin (for Paper/Spigot 1.16.5 – 1.20.4) with the following features:

  1. Session lock – Prevent the same account from joining if that player is already online (no duplicate logins).
  1. IP lock on first join – When a player joins for the first time, store their IP address internally (never shown to the player). On every subsequent join, check that their current IP matches the stored IP. If it does NOT match, deny the login and kick them with a generic message: "Your account is locked to another IP. Contact an administrator to reset it."

Do NOT display the original IP or any IP address in any kick message or player-facing chat.

  1. OP join message – When a player with OP (operator) joins the server, broadcast to all online players (or just console/log): "IP LOCK BY MrNaruto" (exactly that phrase).
  1. Admin reset command – A command to clear the IP lock for a specific player. Must work from console and from in‑game with OP permission (or permission iplock.reset).

Example: /resetip <player> When reset, the player's next join will store their new IP as the new lock.

  1. IP limit per user – Allow an admin to set a maximum number of accounts that can be locked to the same IP address. If that limit is reached, new players from that IP are blocked with a generic message (no IP shown).

Example config option: max-accounts-per-ip: 3

  1. Additional requirements:

- No IP addresses are ever sent to players in chat, kick messages, or commands. - Log IP lock violations to console + a file (for admins only). - Bypass permission: iplock.bypass (players with this can join from any IP, bypassing the lock). - Configurable messages (except IPs never appear). - Works with online‑mode and offline‑mode servers. - Supports BungeeCord/Velocity with IP forwarding.

Output full plugin code (Java, Bukkit/Spigot API), including plugin.yml and config.yml. Code must be secure and well‑commented.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code