LawrenceThePlayer

I am creating a Minecraft plugin using Spigot/Paper called FlyHighSMP-perm.

I want a full permission system where all custom permissions correctly show in LuckPerms.

Requirements:

Use structured permission nodes like flyhighsmp.command.fly Ensure all permissions are defined in plugin.yml so they appear in LuckPerms Make sure permissions are also checked properly in Java code

Kodari AI
KodariApr 10 at 1:35 pm 8,901 (v2)

I’ll create a comprehensive permission system plugin with properly structured permissions that integrate with LuckPerms.

FlyHighSMPPerm
A complete permission-based command system featuring fly, god mode, heal, feed, speed, and gamemode commands. All permissions are properly structured with hierarchical nodes (flyhighsmp.command.*, flyhighsmp.admin.*) and fully integrated with LuckPerms. Includes permission checks, wildcard support, and detailed permission descriptions in plugin.yml for easy management through permission plugins.

Project created successfully! This permission system includes:

Permission Structure:

  • flyhighsmp.* - Master permission (grants everything)

  • flyhighsmp.command.* - All command permissions

  • flyhighsmp.admin.* - All admin permissions (using commands on others)

  • Individual permissions like flyhighsmp.command.fly, flyhighsmp.command.fly.others, etc.

Features:

  • 6 fully functional commands (fly, god, heal, feed, speed, gamemode)

  • Each command has separate “self” and “others” permissions

  • All permissions properly defined in plugin.yml with descriptions

  • Hierarchical permission nodes with wildcard support

  • Full LuckPerms integration (all permissions visible in /lp editor)

  • Proper permission checking in Java code using hasPermission()

All permissions will automatically appear in LuckPerms and can be managed through /lp user <name> permission set <permission> or the web editor!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
11 731
src/main/java/com/flyhighsmp/perm/FlyHighSMPPerm.java
package com.flyhighsmp.perm;

import com.flyhighsmp.perm.command.*;
import com.flyhighsmp.perm.data.GodModeManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FlyHighSMPPerm extends JavaPlugin {
    
    private GodModeManager godModeManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.godModeManager = new GodModeManager();
        
        registerCommands();
        
        getLogger().info("FlyHighSMPPerm has been enabled!");
        getLogger().info("All permissions are registered with LuckPerms.");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("FlyHighSMPPerm has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("fly").setExecutor(new FlyCommand(this));
        getCommand("god").setExecutor(new GodCommand(this));
        getCommand("heal").setExecutor(new HealCommand(this));
        getCommand("feed").setExecutor(new FeedCommand(this));
        getCommand("speed").setExecutor(new SpeedCommand(this));
        getCommand("gm").setExecutor(new GamemodeCommand(this));
    }
    
    public String getMessage(String path) {
        return getConfig().getString("messages." + path, "&cMessage not found: " + path)
                .replace("&", "§");
    }
}