ShopPlugin [1.12.2-1.20.4] icon

ShopPlugin [1.12.2-1.20.4] -----

Custom Shop Menu & Custom Discount & Vault & PlayerPoints



Require: PlayerPoints(soft) Vault PlaceholderAPI


Commands & Permission:

/ShopPlugin reload - ShopPlugin.cmd.reload
/ShopPlugin open <gui> <player> - ShopPlugin.cmd.open.<menu> / ShopPlugin.cmd.open.other
/ShopPlugin getItem <item> <Player> - ShopPlugin.cmd.getItem
/ShopPlugin setItem <item> - ShopPlugin.cmd.setItem

How to use:
1. Put Plugin and depend.
2. Write files following the example format.
3. Reload
4. Use cmd /shopplugin setItem <itemId> to set Sell Item.

Other:
1. UI Format

Maybe Update when i get new idea.

API:
Code (Text):

public interface ShopPluginAPI {

    ShopItem getShopItem(String id);

    ShopGui getShopGui(String id);

    void openShopGui(String id, Player player);

    Map<String, ShopItem> getShopItems();

    Map<String, ShopGui> getShopGuis();
}
 

Configurations:
Code (Text):

Perms:
  default:
    permission: "shop.group.default"
    groupName: "default"
    percent: 1
    percentName: "Common Price"
  vip_1:
    permission: "shop.group.vip_1"
    groupName: "vip 1" # %group%
    percent: 0.7 # %percent%
    percentName: "-70%" # %percentName%

Message:
  prefix: " &aShopPlugin > "
  noPermission:
    - "%prefix% no Permission."
  notFoundPlayer:
    - '%prefix% Player %target% not found.'
  notFoundGui:
    - "%prefix% Menu %target% not found."
  notFoundItem:
    - "%prefix% ShopItem %target% not found."
  airItem:
    - "%prefix% &cAir."
  shop:
    notEnoughMoney:
      - "%prefix% not enough money."
    notEnoughPoint:
      - "%prefix% not enough point."
    buy:
      - "%prefix% you bought %item% * %amount% , Cost %cost% %type%"
    vault: "Coins"
    playerPoints: "Points"
  commands:
    help:
      - "Cmd Help"
      - "/ShopPlugin reload"
      - "/ShopPlugin help"
      - "/ShopPlugin open <gui> &7<Player> &f- 0pen menu for player"
      - "/ShopPlugin getItem <item> &7<player> &f- Get SellItem from ShopItems"
      - "/ShopPlugin setItem <item> &f- Set Main Hand Item to File."
    reload:
      - "%prefix% reload."
    open:
      - "%prefix% Player %target% open %gui%"
    setItem:
      - "%prefix% SET %target% To %item%"
    getItem:
      - "%prefix% Got %item%"
    getItemForPlayer:
      - "%prefix% Give Player %target% Item %item%"
 

Code (Text):

id: "shop"
title: "&8SHOP GUI"
slots:
  - '#########'
  - "#       #"
  - "#  `item_1` `item_2`  #"
  - "#       #"
  - "########`quit`"
close: [44]
items:
  "#":
    material: STAINED_GLASS_PANE
    name: "Server"
  "quit":
    material: BARRIER
    name: "Close"
 

Code (Text):

id: "item_1"
ui:
  name: "&eAPPLE"
  material: "APPLE"
  lore:
    - ""
    - "&a Nice Apple "
    - ""
    - ' &fPrice: &e%price% %type%'
    - ' &fDiscount: &b%percent%%'
    - ''
    - ' &fFinal Cost: &e%lastPrice% %type%'
    - ''
    - '&7Left Click to buy 1 Item.'
    - '&7Right Click to buy 10 Item.'
    - '&7Shift Left Click to buy 64 Item.'
  glow: true

price: 5.5
type: vault

item:
  ==: org.bukkit.inventory.ItemStack
  type: APPLE
  meta:
    ==: ItemMeta
    meta-type: UNSPECIFIC
 

Code (Text):

id: "item_2"
ui:
  name: "&eLEVER"
  material: "LEVER"
  lore:
    - ""
    - "&b&l PlayerPoints LEVER "
    - ""
    - ' &fPrice: &e%price% %type%'
    - ' &fDiscount: &b%percent%%'
    - ''
    - ' &fFinal Cost: &e%lastPrice% %type%'
    - ''
    - '&7Left Click to buy 1 Item.'
    - '&7Right Click to buy 10 Item.'
    - '&7Shift Left Click to buy 64 Item.'
  glow: true

price: 10

type: player_points

item:
  ==: org.bukkit.inventory.ItemStack
  type: LEVER
  meta:
    ==: ItemMeta
    meta-type: UNSPECIFIC
 


Picture:

upload_2025-1-23_15-34-49.png

upload_2025-1-23_15-34-58.png

upload_2025-1-23_15-36-41.png
Resource Information
Author:
----------
Total Downloads: 68
First Release: Jan 23, 2025
Last Update: Feb 2, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings