• 周年纪念勋章活动已圆满结束,如有已购买但仍未申请的用户,可以通过对应勋章的下载链接申请~
FBoxShop-新时代箱子商店 全GUI操作支持点[1.13~1.21]券点券货币高度自定义

原创 经济 FBoxShop-新时代箱子商店 全GUI操作支持点[1.13~1.21]券点券货币高度自定义 1.3

版权类型
原创
插件中文名称
F箱子商店
插件英文名称
FBoxShop
原帖地址
#
支持的核心(服务端)
  1. Spigot
  2. Paper
语言支持
中文(简体)
前置组件
fbinggunUtil(https://www.minebbs.com/resources/fbinggunutil-fgive.9900/)ProtocolLib、PlayerPoints、Vault、PlaceholderAPI
适配版本(Java)
  1. 1.21
  2. 1.20
  3. 1.19
  4. 1.18
  5. 1.17
  6. 1.16
  7. 1.15
  8. 1.14
  9. 1.13
YAML:
ShopCount:
  Default: 10
  #权限 FBoxShop.Count.VIP
  #权限 FBoxShop.Points 切换点券模式
  #权限 FBoxShop.CutShop 切换商店(出售、收购模式)
  VIP: 20
#税率 权限FBoxShop.Tax.VIP
Tax:
  Default: 0.05
  VIP: 0.03
#牌子
Sign:
  - "&a[{ShopType}商店] &e{owner}"
  - "&f{ItemName}"
  - "&b数量: {Inventory_Count}"
  - "&d售价: &e{Price} &a{PriceType}"
Lang:
  Prefix: "&e[玩家商店] "
  Count_Deficiency: "&c此商店没有足够的物品"
  Price_Deficiency: "&c你没用足够的金额购买商品"
  Shop_Nonentity: "&c商品不存在"
  Shop_Spare: "&c这个商店无法收购这么多的物品"
  PlayerShop_Price_Deficiency: "&c这个商店没有足够的资金收购这个物品"
  Player_Spare: "&c你的背包装不下这么多物品"
  Player_Deficiency: "&c你没用足够的物品出售"
  Player_Create_Fail_Count: "&c你无法创建更多的商店了"
  Player_On_Per: "&c你没有权限打开这个商店"
  Edit_Lock: "&c店主正在编辑此商店 请稍后再试"
  Shop_Lock: "&c有人正在购买物品 无法编辑商店"
  Infinite: "&6系统商店"
ServerName: "生存一服"
#建议开启MySQL更为稳定
SQL:
  MySQLEnable: false
  ##用户名
  username: root
  ##密码
  password: root
  ##数据库链接地址
  hostname: localhost:3306
  ##链接到的库
  database: ceshi
  table: FBoxShop
  additional: "useSSL=true&useUnicode=true&amp&characterEncoding=UTF-8&connectTimeout=43200000"
Gui:
  Shop:
    Size: 27
    Title: "&b玩家商店: &e{owner} &f&l{ItemName} {ShopType}"
    Item:
      #商品预览
      Shop:
        Type: PreviewItem
        #所在位置
        Slot: 4
      AddCount-1:
        #用于判断按钮类型 AlterCount(增减数量) Confirm(确定购买) Other(其他)
        Type: AlterCount
        Slot: 9
        Count: -1
        Item:
          Type: BOOK
          Name: "&a{ShopType}数量 -1"
          Lore:
            - "&b当前数量: &e{Count}"
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount-10:
        Type: AlterCount
        Slot: 10
        Count: -10
        Item:
          Type: BOOK
          Name: "&a{ShopType}数量 -10"
          Lore:
            - "&b当前数量: &e{Count}"
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount-64:
        Type: AlterCount
        Slot: 11
        Count: -64
        Item:
          Type: BOOK
          Name: "&a{ShopType}数量 -64"
          Lore:
            - "&b当前数量: &e{Count}"
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount-Max:
        Type: AlterCount
        Slot: 12
        Count: -9999
        Item:
          Type: BOOK
          Name: "&a{ShopType}数量 设置为1"
          Lore:
            - "&b当前数量: &e{Count}"
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount1:
        Type: AlterCount
        Slot: 14
        Count: 1
        Item:
          Type: BOOK
          Name: "&a{ShopType}数量 +1"
          Lore:
            - "&b当前数量: &e{Count}"
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount10:
        Type: AlterCount
        Slot: 15
        Count: 10
        Item:
          Type: BOOK
          Name: "&a{ShopType}数量 +10"
          Lore:
            - "&b当前数量: &e{Count}"
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount64:
        Type: AlterCount
        Slot: 16
        Count: 64
        Item:
          Type: BOOK
          Name: "&a{ShopType}数量 +64"
          Lore:
            - "&b当前数量: &e{Count}"
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCountMax:
        Type: AlterCount
        Slot: 17
        Count: 9999
        Item:
          Type: BOOK
          Name: "&a{ShopType}数量 +最大数量"
          Lore:
            - "&b当前数量: &e{Count}"
            - "&b当前价格: &e{Price} &b{PriceType}"
      Confirm:
        Type: Confirm
        Slot: 13
        Item:
          Type: EMERALD
          Name: "&a{ShopType}购买"
          Lore:
            - "&b当前数量: &e{Count}"
            - "&b当前价格: &e{Price} &b{PriceType}"
  ManageShop:
    Size: 27
    Title: "&b玩家商店: &e{owner} &f&l{ItemName} {ShopType} &c编辑中"
    Item:
      #商品预览
      Shop:
        Type: PreviewItem
        #所在位置
        Slot: 4
      AddCount-1:
        Type: AlterCount
        Slot: 9
        Count: -1
        Item:
          Type: BOOK
          Name: "&a{ShopType}价格 -1"
          Lore:
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount-10:
        Type: AlterCount
        Slot: 10
        Count: -100
        Item:
          Type: BOOK
          Name: "&a{ShopType}价格 -100"
          Lore:
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount-64:
        Type: AlterCount
        Slot: 11
        Count: -10000
        Item:
          Type: BOOK
          Name: "&a{ShopType}价格 -10000"
          Lore:
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount-Max:
        Type: AlterCount
        Slot: 12
        Count: -1000000000
        Item:
          Type: BOOK
          Name: "&a{ShopType}价格 设置为1"
          Lore:
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount1:
        Type: AlterCount
        Slot: 14
        Count: 1
        Item:
          Type: BOOK
          Name: "&a{ShopType}价格 +1"
          Lore:
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount10:
        Type: AlterCount
        Slot: 15
        Count: 100
        Item:
          Type: BOOK
          Name: "&a{ShopType}价格 +100"
          Lore:
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCount64:
        Type: AlterCount
        Slot: 16
        Count: 10000
        Item:
          Type: BOOK
          Name: "&a{ShopType}价格 +10000"
          Lore:
            - "&b当前价格: &e{Price} &b{PriceType}"
      AddCountMax:
        Type: AlterCount
        Slot: 17
        Count: 1000000
        Item:
          Type: BOOK
          Name: "&a{ShopType}价格 +1000000"
          Lore:
            - "&b当前价格: &e{Price} &b{PriceType}"
      DelShop:
        Type: DelShop
        Slot: 20
        Item:
          Type: REDSTONE_BLOCK
          Name: "&c删除商店"
      SetShopType:
        Type: SetShopType
        Slot: 18
        Item:
          Type: ENDER_CHEST
          Name: "&a商店模式: {ShopType}"
          Lore:
            - "&a点击切换"
      SetPriceType:
        Type: SetPriceType
        Slot: 19
        Item:
          Type: BOOK
          Name: "&a货币: {PriceType}"
          Lore:
            - "&a点击切换"

权限:
FBoxShop.Count.xxx 玩家创建商店的数量
FBoxShop.Tax.xxx 玩家税率
FBoxShop.Points 切换点券模式
FBoxShop.CutShop 切换商店(出售、收购模式)

指令:
/FBoxShop reload 重载成功配置文件
/fbs Infinite 将商店修改为系统商店

备注:
1.如何汉化物品名: 在FBinggunUtil插件文件夹中ItemLang.yml文件中 添加或修改物品ID名(ID注意大写)
2.如何使用ItemsAdder物品: 将GUI配置中的Item: Type: BOOK (书)替换为IA的物品ID
3.如何在购买菜单中添加其他按钮:在ManageShop(Shop):节点下 添加例如
代码:
#按钮ID(随意)
SetHome:
#按钮位置
  Slot: 11
#物品设置
  Item:
#物品ID
    Type: RED_BED
#物品显示名
    Name: "&a设置传送点"
  #运行的指令
  Command:
- "[Player]fpw sethome"

pAfAngO.md.jpg

pAfAuvD.md.jpg
作者
深居
价格
100金粒
下载
58
查看
1,502
首次发布
最后更新

评分

0.00 星 0 次评分

深居 的其他资源

后退
顶部 底部