baccha_chor_og

Make a plugin like whitelist with commands /allow , /allow add

Kodari AI
KodariMar 3 at 4:41 pm 7,177 (v2)

I’ll create a whitelist-style plugin with /allow commands for managing player access to the server.

AllowPlugin
A flexible whitelist management system that controls server access through the /allow command. Server administrators can add or remove players from the allowed list, preventing unauthorized access. Features include persistent storage of allowed players, automatic join blocking for non-allowed players, and convenient list viewing. Provides a simpler alternative to vanilla whitelist with additional management capabilities.

Plugin created with whitelist-style access control! Features include:

  • /allow add <player> - Add players to the allowed list

  • /allow remove <player> - Remove players from the list

  • /allow list - View all allowed players with online status

  • /allow reload - Reload configuration

  • Persistent UUID-based storage with automatic kick on removal

baccha_chor_og

For paper it will work right?

Kodari AI
KodariMar 3 at 4:43 pm 5,046 (v2)

I need to check your plugin to confirm Paper compatibility.

Yes, this will work perfectly on Paper! ✅

Your plugin uses:

  • Standard Bukkit/Spigot API (spigot-api dependency)

  • api-version: 1.13 (Paper fully supports this)

  • Basic features: commands, listeners, config, UUID storage

  • No version-specific code that would break

Paper is a Spigot fork with full backward compatibility. Any Spigot plugin works on Paper. In fact, Paper offers:

  • Better performance

  • More configuration options

  • Additional API features (if you want to use them later)

Your AllowPlugin will run on Spigot, Paper, Purpur, Pufferfish, or any other Paper fork without any changes needed.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 386
src/main/java/com/allowplugin/AllowPlugin.java
package com.allowplugin;

import com.allowplugin.commands.AllowCommand;
import com.allowplugin.listeners.JoinListener;
import com.allowplugin.managers.AllowManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AllowPlugin extends JavaPlugin {

    private AllowManager allowManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.allowManager = new AllowManager(this);
        allowManager.loadAllowedPlayers();

        getCommand("allow").setExecutor(new AllowCommand(this));

        getServer().getPluginManager().registerEvents(new JoinListener(this), this);

        getLogger().info("AllowPlugin has been enabled!");
    }

    @Override
    public void onDisable() {
        if (allowManager != null) {
            allowManager.saveAllowedPlayers();
        }
        getLogger().info("AllowPlugin has been disabled!");
    }
}