miki1000_

make it paper and .jar and un zip

Kodari AI
KodariMay 7 at 7:43 pm 4,728 (v2)

I’ll help you convert this to Paper and set up proper JAR building. Let me first check the current configuration.

I can see your plugin is already using Paper API! I’ll optimize the build configuration and remove the unnecessary manifest.kod file (XSeries is auto-detected).

Perfect! Your plugin is now set up for Paper with proper JAR building:

Changes made:

  1. build.gradle - Added JAR task configuration to output FFATools-1.0.0.jar

  2. Removed manifest.kod - XSeries is auto-detected, no need to list it

Your plugin already uses Paper API correctly!

To build the JAR:

Shell
./gradlew build

Output location: build/libs/FFATools-1.0.0.jar

The plugin is Paper-compatible (Paper extends Bukkit API, so your JavaPlugin code works perfectly).

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
11 768
src/main/java/com/ffatools/FFAToolsPlugin.java
package com.ffatools;

import com.ffatools.listeners.CombatListener;
import com.ffatools.listeners.InteractListener;
import com.ffatools.listeners.ProjectileListener;
import com.ffatools.managers.CooldownManager;
import com.ffatools.managers.ItemManager;
import com.ffatools.commands.FFAToolsCommand;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FFAToolsPlugin extends JavaPlugin {
    
    private CooldownManager cooldownManager;
    private ItemManager itemManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.cooldownManager = new CooldownManager();
        this.itemManager = new ItemManager(this);
        
        getCommand("ffatools").setExecutor(new FFAToolsCommand(this));
        
        getServer().getPluginManager().registerEvents(new InteractListener(this), this);
        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getServer().getPluginManager().registerEvents(new ProjectileListener(this), this);
        
        getLogger().info("FFATools has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("FFATools has been disabled!");
    }
    
    public void reloadPlugin() {
        reloadConfig();
        this.itemManager = new ItemManager(this);
    }
}