G

Create a Minecraft Spigot/Paper plugin (Java) named:

MC-ProsSMP

The plugin must support Minecraft Java Edition 1.20+ (Spigot/Paper API).

The plugin must combine the following major systems into a single optimized plugin:

Secure Login Authentication System Lifesteal SMP System Item-Based Bounty System Random Server Event System

The plugin must be stable, optimized, secure, and production-ready for large SMP servers.

Do NOT skip any feature.

1️⃣ Secured Login Authentication System

Players must authenticate before playing.

Commands:

/register <password> <confirmPassword> /login <password>

Rules:

• If the player is new → must register • If already registered → must login • Player remains locked until authentication

Player Lock System (Before Login)

Blocked actions:

movement block breaking block placing item dropping item pickup attacking entities opening inventories chatting using other commands

Other players and mobs cannot damage locked players.

Login Movement Freeze Protection

When a player joins and is not authenticated:

store their exact join location

If the player moves:

if from.getX() != to.getX() OR from.getZ() != to.getZ()

Teleport player back to stored location.

This prevents bypass through:

knockback water flow pistons teleport plugins server lag movement

After successful login:

remove movement restriction.

Allowed Commands Before Login /login /register /l /reg Password Rules

Minimum length: 6 Maximum length: 32

Passwords must be stored using:

bcrypt or SHA-256 hashing

Never store plain text passwords.

Maximum Login Attempts

Maximum attempts: 3

If exceeded:

Kick message:

Too many incorrect password attempts.

Login Timeout

Players must login within 60 seconds.

Kick message:

Login timeout.

VPN Protection System

Detect VPN or proxy usage.

If detected:

Kick message:

VPN or Proxy connections are not allowed on this server.

One IP Per Account Rule One IP = One Minecraft account

If IP already used:

Only one account is allowed per IP address.

Account Location Security

Store last login IP.

If login occurs from a different IP:

Kick message:

Security alert: Your account attempted to login from a different location.

Registration Success Message Registration successful. Please login using /login <password>.

Login Success Message Login successful. Welcome back.

Player restrictions removed.

Reminder Messages

Every 5 seconds send reminder.

Not registered:

Please register using /register <password> <password>

Registered but not logged in:

Please login using /login <password> Admin Command /forcepasswordreset <player>

Effect:

Player must register again.

Permission:

mcpros.admin Join Rate Limiter

If same IP joins 3 times within 10 seconds:

Kick message:

Too many join attempts detected.

Please wait before reconnecting.

Fake Player Detection

Detect:

random username spam repeated join attempts abnormal connection spam

Kick message:

Suspicious connection detected.

Login Data Storage

Store data in:

plugins/MC-ProsSMP/players.yml

Data fields:

UUID username hashed_password registered_ip last_login_ip registration_date 2️⃣ Lifesteal SMP System

When a player kills another player:

• killer gains 1 heart • victim loses 1 heart

Conversion:

1 heart = 2 health points

Example:

10 hearts = 20 health 15 hearts = 30 health Heart Limits (Configurable)

Config example:

starting_hearts: 10 max_hearts: 50 min_hearts: 0

If player reaches 0 hearts:

Ban message:

You have lost all your hearts.

You are eliminated from the Lifesteal SMP.

Natural Death Heart Transfer

If death caused by:

fall lava mobs drowning fire

Then:

• player loses 1 heart • that heart transfers to a random online player

Withdraw Heart System

Command:

/withdrawheart <amount>

Example:

/withdrawheart 1

Effect:

• removes 1 heart • gives Heart Crystal item

Rules:

• player must keep at least 1 heart

If withdrawing all hearts:

Chat warning:

You are trying to withdraw all your hearts.

Do you want to withdraw all your hearts leaving only 1 heart?

Confirmation required.

Heart Crystal Item

Custom item:

Heart Crystal

Function:

Right click → gain +1 heart

Cannot exceed max hearts.

Message:

You consumed a Heart Crystal and gained 1 heart.

Resource Pack Support

Heart Crystal properties:

Material: NETHER_STAR CustomModelData: 10001 Name: Heart Crystal

Supports custom resource pack textures.

Hearts Command /hearts

Example output:

Your Hearts: 14 Maximum Hearts: 50 Lifesteal Data Storage plugins/MC-ProsSMP/lifesteal.yml

Fields:

UUID player name hearts last killer 3️⃣ Item Based Bounty System

Command:

/bounty <player>

Opens bounty INVENTORY GUI.

Players place items as bounty reward.

Items removed from inventory and stored.

Broadcast:

A bounty has been placed on Steve!

Hunters can now hunt them.

Bounty Claim System

If bounty target dies:

• killer receives all bounty items • bounty resets

Broadcast:

Alex has claimed the bounty on Steve!

Multiple Contributors

Multiple players can add bounty items.

All items combine into one reward pool.

Bounty List Command /bounty

Example:

Active Bounties:

Steve Alex Herobrine View Bounty Rewards /bounty view <player>

Opens INVENTORY GUI with bounty items.

24 Hour Cooldown System

After bounty claimed:

Player cannot receive new bounty for 24 hours.

Message:

You cannot place a bounty on this player yet.

You must wait 24 hours before placing another bounty.

Server History Check

Bounty command only works on players who joined server at least once.

Message:

This player has never joined the server.

You cannot place a bounty on them.

Admin Command /bounty remove <player>

Permission:

mcpros.admin Bounty Data Storage plugins/MC-ProsSMP/bounties.yml

Fields:

target UUID player name bounty items contributors

Main Config File plugins/MC-ProsSMP/config.yml

Example:

minimum_players: 3 event_countdown_minutes: 5 starting_hearts: 10 max_hearts: 50 login_timeout_seconds: 60 max_login_attempts: 3 vpn_protection: true Required Bukkit Events

Use:

AsyncPlayerPreLoginEvent PlayerJoinEvent PlayerQuitEvent PlayerMoveEvent PlayerDeathEvent PlayerInteractEvent AsyncPlayerChatEvent BlockBreakEvent BlockPlaceEvent PlayerDropItemEvent EntityDamageEvent EntityDamageByEntityEvent InventoryOpenEvent InventoryClickEvent PlayerCommandPreprocessEvent Performance Requirements

The plugin must:

• support large SMP servers • avoid lag • use async data saving • prevent main thread blocking • handle large player counts safely

Kodari AI
KodariApr 9 at 8:26 am 34,445 (v2)

I’ll create a comprehensive SMP plugin combining authentication, lifesteal, bounty, and event systems.

MCProsSMP
A secure all-in-one SMP plugin featuring: account authentication with VPN protection and IP tracking, lifesteal system with heart gain/loss on kills and heart withdrawal items, item-based bounty system with GUI interface, and performance-optimized design for large servers. Includes comprehensive player locking, security measures, and data persistence.

All 32 files created successfully. The plugin combines secure authentication with VPN/IP protection, lifesteal mechanics with heart crystals, and an item-based bounty system with full GUI support.

G

remove restrictions after loged in successful

Kodari AI
KodariApr 11 at 1:42 am 7,899 (v2)

I’ll help you remove restrictions after a successful login. Let me first examine the authentication and security system to understand what restrictions are currently applied.

Let me also check the SecurityManager to see if there are any additional restrictions:

I can see the issue! There are two security systems applying restrictions:

  1. AuthListener (checks AuthManager.isAuthenticated())

  2. authentication.SecurityManager (checks its own authenticatedPlayers map)

When a player logs in successfully, the AuthManager updates PlayerData.authenticated = true, but it doesn’t update the SecurityManager.authenticatedPlayers map. This means the player remains restricted by the SecurityManager even after logging in.

I’ll fix this by updating the login method to properly remove all restrictions:

All restrictions are now properly removed after successful login. The system updates both the PlayerData authentication status and the SecurityManager’s authenticated players map, allowing the player to move, break blocks, place blocks, open inventories, chat, pick up items, deal damage, and use all commands.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
40 2,465
src/main/java/com/mcpros/smp/MCProsSMP.java
package com.mcpros.smp;

import com.mcpros.smp.authentication.SecurityManager;
import com.mcpros.smp.config.ConfigManager;
import com.mcpros.smp.data.DataManager;
import com.mcpros.smp.events.EventManager;
import com.mcpros.smp.inventory.gui.GUIManager;
import com.mcpros.smp.manager.AuthManager;
import com.mcpros.smp.manager.BountyManager;
import com.mcpros.smp.manager.LifestealManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MCProsSMP extends JavaPlugin {

    private ConfigManager configManager;
    private DataManager dataManager;
    private SecurityManager securityManager;
    private LifestealManager lifestealManager;
    private BountyManager bountyManager;
    private EventManager eventManager;
    private GUIManager guiManager;
    private AuthManager authManager;
    private com.mcpros.smp.manager.SecurityManager securityManagerClass;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.configManager = new ConfigManager(this);
        this.dataManager = new DataManager(this);
        this.guiManager = new GUIManager();
        this.securityManagerClass = new com.mcpros.smp.manager.SecurityManager(this);
        this.securityManager = new SecurityManager(this);
        this.authManager = new AuthManager(this);
        this.lifestealManager = new LifestealManager(this);
        this.bountyManager = new BountyManager(this);
        this.eventManager = new EventManager(this);

        securityManager.registerListeners();

        getServer().getPluginManager().registerEvents(new com.mcpros.smp.inventory.gui.GUIListener(guiManager), this);

        getCommand("bounty").setExecutor(new com.mcpros.smp.command.BountyCommand(this));
        getCommand("hearts").setExecutor(new com.mcpros.smp.command.HeartsCommand(this));
        getCommand("withdrawheart").setExecutor(new com.mcpros.smp.command.WithdrawHeartCommand(this));
        getCommand("register").setExecutor(new com.mcpros.smp.command.RegisterCommand(this));
        getCommand("login").setExecutor(new com.mcpros.smp.command.LoginCommand(this));
        getCommand("forcepasswordreset").setExecutor(new com.mcpros.smp.command.ForcePasswordResetCommand(this));
        getCommand("l").setExecutor(new com.mcpros.smp.command.LoginCommand(this));
        getCommand("reg").setExecutor(new com.mcpros.smp.command.RegisterCommand(this));

        getServer().getPluginManager().registerEvents(new com.mcpros.smp.listener.AuthListener(this), this);
        getServer().getPluginManager().registerEvents(new com.mcpros.smp.listener.LifestealListener(this), this);
        getServer().getPluginManager().registerEvents(new com.mcpros.smp.listener.BountyListener(this), this);
        getServer().getPluginManager().registerEvents(new com.mcpros.smp.listener.SecurityListener(this), this);

        dataManager.loadAllData();

        getLogger().info("MC-ProsSMP has been enabled!");
    }

    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveAllData();
        }
        getLogger().info("MC-ProsSMP has been disabled!");
    }
}