TheTrades

TheTrades

package com.qualityplus.trades.base.event;

@Getter
public final class PlayerTradeEvent extends TradeEvent {
    private final PluginTrade trade;

    public PlayerTradeEvent(@NotNull Player who, PluginTrade trade) {
        super(who);

        this.trade = trade;
    }
}
import com.qualityplus.trades.api.recipes.Trades;
import com.qualityplus.trades.base.trades.PluginTrade;

public class AddTradeExample {
    public void addTradeExampleMethod(){
        Trades.registerNewTrade(PluginTrade.builder()
                .id()
                .page()
                .slot()
                .price()
                .permission()
                .displayName()
                .description()
                .itemCost()
                .itemStack()
                .build());
    }
}

Last updated