kryzi_

Can you create a point shop plugin that integrates with the PlayerPoints plugin for leaf papermc/papermc 1.21.11? I want that you can add any items while holding the item on your hand to sell it on point shop (Administrator only). I also want that it has message.yml to edit prefixes and chats on this plugin and I also want that it has shop.yml to view and edit the slots and prices of an items on the Point Shop. Make sure that they can only get the item once they have enough points to buy a certain items on the point shop. I also want that you put on the Author of this plugin is Velrion/Kryzi.

Kodari AI
KodariJul 30 at 3:59 am 6
PointShopPlugin
A Paper 1.21.11 point shop plugin that integrates with PlayerPoints and lets administrators add any item directly from their main hand. Shop entries preserve the complete item stack, including names, lore, enchantments, and custom data, while administrators configure slots and prices in shop.yml. Players browse a clickable inventory GUI, can purchase only when they have enough points and inventory space, and receive configurable messages and prefixes from message.yml. Author: Velrion/Kryzi.
  1. Create the Gradle project and plugin metadata for Paper 1.21.11.

  2. Add configurable message and shop data files, including serialized item storage.

  3. Implement PlayerPoints integration, shop management, GUI handling, and admin/player commands.

  4. Register all components and enforce permissions, point checks, and inventory checks.

PointShop
PointShop is a Paper 1.21.11 shop plugin that uses PlayerPoints as its currency. Administrators add any item from their main hand with a configurable slot and price, while players browse a protected chest GUI and receive items only after a successful balance check and point withdrawal. The plugin stores shop entries in shop.yml, keeps editable prefixes and messages in message.yml, supports reload and removal commands, checks inventory capacity, and identifies Velrion/Kryzi as its authors.

Created PointShop, a Paper 1.21.11 PlayerPoints shop plugin authored by Velrion/Kryzi.

Features included:

  • PlayerPoints currency integration

  • Admin-only item registration from the main hand

  • Configurable shop slots and prices in shop.yml

  • Editable prefixes, messages, and GUI lore in message.yml

  • Protected inventory GUI

  • Balance verification before purchase

  • Point withdrawal only after inventory-capacity validation

  • Automatic point refund if delivery fails

  • /pointshop, /pointshop add <slot> <price>, /pointshop remove <slot>, /pointshop reload

  • /ps alias

  • pointshop.admin permission

  • Paper 1.21.11 and Java 21 Gradle setup

kryzi_

make it as .jar so I can download it

Kodari AI
KodariJul 30 at 4:03 am 1

I can’t generate or attach a binary .jar in this workspace because Gradle/Java build tools aren’t available here and the project mount is read-only.

Build it locally from the project folder with Java 21 and Gradle:

Shell
gradle build

The compiled plugin will be located at:

Plain Text
build/libs/PointShop-1.0.0.jar

Then place it in your Paper server’s:

Plain Text
plugins/

Also install PlayerPoints separately; it is a required server dependency and is not bundled into the PointShop jar.

Kodari can make mistakes. Review important code before using.
Files
src
.gitignore
build.gradle
settings.gradle
Code
13 739
src/main/java/com/velrion/pointshop/PointShopPlugin.java
package com.velrion.pointshop;

import com.velrion.pointshop.command.PointShopCommand;
import com.velrion.pointshop.config.MessageManager;
import com.velrion.pointshop.gui.PointShopGUI;
import com.velrion.pointshop.listener.ShopListener;
import com.velrion.pointshop.shop.ShopManager;
import org.black_ixx.playerpoints.PlayerPoints;
import org.black_ixx.playerpoints.PlayerPointsAPI;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.IOException;

public class PointShopPlugin extends JavaPlugin {
    private MessageManager messageManager;
    private ShopManager shopManager;
    private PointShopGUI pointShopGUI;
    private PlayerPointsAPI pointsApi;

    @Override
    public void onEnable() {
        if (!Bukkit.getPluginManager().isPluginEnabled("PlayerPoints")) {
            getLogger().severe("PlayerPoints is required for PointShop.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        this.pointsApi = PlayerPoints.getInstance().getAPI();
        this.messageManager = new MessageManager(this);
        this.shopManager = new ShopManager(this);
        this.pointShopGUI = new PointShopGUI(shopManager, messageManager);

        Bukkit.getPluginManager().registerEvents(
                new ShopListener(shopManager, messageManager, pointsApi), this
        );

        PointShopCommand command = new PointShopCommand(shopManager, messageManager, pointShopGUI);
        getCommand("pointshop").setExecutor(command);
        getCommand("pointshop").setTabCompleter(command);
    }

    @Override
    public void onDisable() {
        if (shopManager == null) {
            return;
        }

        try {
            shopManager.save();
        } catch (IOException exception) {
            getLogger().severe("Could not save shop.yml: " + exception.getMessage());
        }
    }
}