💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### 简介 本插件可以实现全服物品宝可梦限制收购,防止因为通货膨胀对于服务器经济系统带来的恶劣影响,所有指令需要特定的权限才能够执行,并且支持服务器数据互通和多种数据库支持,插件简单配置对服务器资源占用小 ### 指令 ``` /servershop item 打开物品收购界面 /servershop pokemon 打开宝可梦收购界面 /servershop reload 重载配置文件 /servershop additem <price> <currency> 货币有 Vault和PlayerPoints 添加手中物品到服务器收购商店 ``` ### 权限 ``` servershop.command.base 插件基础权限 (必须) servershop.command.item 打开物品收购权限 servershop.command.pokemon 打开宝可梦收购权限 servershop.command.additem 添加收购物品权限 servershop.command.reload 重载配置文件权限 ``` ### Config.yml配置文件 ``` yaml server_name: 'server1' #每日服务器收购上限 server_buy_limit: 10000 #每日个人收购上限 personal_buy_limit: 1000 #存储类型支持mysql与sqlite storage_type: 'sqlite' #数据库配置 minecraft为数据库名称,修改为自己的数据库名称 mysql: jdbc: 'jdbc:mysql://localhost:3306/minecraft?useSSL=false' userName: 'root' passWord: '123455' message: value: '金币' player_points: '点券' server_full: '服务器今日以达到收购上限' personal_full: '你今日的出售数量已经达到上限' buy_success: '你成功出售了{item}获得{price}' no_pokemon: '此位置没有宝可梦' #相应的功能是否开启 item_sell: true pokemon_sell: true ``` ### Items.yml配置文件 #### 这是物品收购的配置文件 *** ``` yaml stone: price: 100 #收购价格 currency: 'Vault' #货币支持Vault和PlayerPoints icoItem: #显示图标物品 ==: org.bukkit.inventory.ItemStack type: 'STONE' #mod的类型使用: mod名字_物品名字,必须全部为大写, 名字详情可以在游戏中按f3+h显示详细信息查看 meta: ==: ItemMeta meta-type: UNSPECIFIC display-name: '测试石头' lore: - '&7今日你已经出售%servershop_player_day%/1000' - '&7你的总出售%servershop_player_total%' - '&7今日服务器已收购%servershop_server_day%/10000' - '&7服务器总收购%servershop_server_total%' checkItem: #检查的收购物品 ==: org.bukkit.inventory.ItemStack type: 'STONE' ``` ### Itemshop.yml配置文件 #### 这是物品收购界面的配置文件 *** ``` yaml GUI: #标题 title: '§2请选择要出售的物品 {page}/{totalpage}' #布局 layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','A','A','A','A','D', 'D','A','A','A','A','A','A','A','D', 'D','A','A','A','A','A','A','A','D', 'D','A','A','A','A','A','A','A','D', 'D','D','D','D','F','D','D','D','D', ] D: item-type: 'minecraft:stained_glass_pane' quantity: 1 damage: 5 name: ' ' lore: [ ] P: item-type: 'minecraft:arrow' quantity: 1 damage: 0 name: '§7上一页' lore: [ ] N: item-type: 'minecraft:arrow' quantity: 1 damage: 0 name: '§7下一页' lore: [ ] F: item-type: 'minecraft:ender_pearl' quantity: 1 damage: 0 name: '§7信息' lore: [ ] ``` ### Pokeshop.yml配置文件 #### 这是宝可梦收购商店的配置文件 *** ``` yaml GUI: #标题 title: '§2请选择要出售的精灵' #布局 layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','D','A','A','A','D', 'D','D','D','D','F','D','D','D','D', ] A: shiny: true #图标是否闪光 lore: - '§d一些描述' - '§d支持papi解析' - '§d出售价格: §a%price%' D: #装饰物品 item-type: 'minecraft:stained_glass_pane' quantity: 1 damage: 5 name: ' ' lore: [ ] F: #关闭按钮,如果不需要,在布局里面删除就不会出现 item-type: 'minecraft:ender_pearl' quantity: 1 damage: 0 name: '§7关闭' lore: - '&7今日你已经出售%servershop_player_day%/1000' - '&7你的总出售%servershop_player_total%' - '&7今日服务器已收购%servershop_server_day%/10000' - '&7服务器总收购%servershop_server_total%' #确认界面 confirm_ui: title: '&2确认购买' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','E','E','E','D','E','E','E','D', 'D','E','A','E','D','E','C','E','D', 'D','E','E','E','D','E','E','E','D', 'D','D','D','D','F','D','D','D','D' ] D: item-type: 'minecraft:stained_glass_pane' quantity: 1 damage: 12 name: ' ' lore: [ ] C: type: 'minecraft:emerald' quantity: 1 damage: 0 name: '&d确认' lore: [ ] F: type: 'minecraft:ender_pearl' quantity: 1 damage: 0 name: '&7取消' lore: [ ] #货币支持Vanilla和PlayerPoints currency: 'Vault' #价格加权模式 modifierMode: 'Multiply' #有Multiply 和 Add两种模式,加法模式是基础价格+加成权重,乘法模式是基础价格+基础价格*加成权重 #基础价格 basePrice: 30 #等级加权 大于设定的等级 level: 90 levelWeight: 0.2 #闪光加权 shinyWeight: 0.2 #个体v加权 ivs_1_Weight: 0.01 ivs_2_Weight: 0.05 ivs_3_Weight: 0.09 ivs_4_Weight: 0.2 ivs_5_Weight: 0.5 ivs_6_Weight: 0.8 #努力值加权 大于设定的努力值 evs: 500 full_evs_Weight: 0.3 #究极异兽加权 ultra_Weight: 0.5 #传奇精灵加权 legendary_Weight: 0.5 #自定义材质加权 customTexture_Weight: 0.5 #指定精灵加权 (精灵名称:加权数) pokes: - 'mew:0.5' - 'mewtwo:0.5' ``` ### 插件预览图片 ![物品收购界面](https://image.mc9y.com/2022/04/26/56754693bbd72.png "插件预览图片") ![宝可梦收购界面](https://image.mc9y.com/2022/04/26/1b4eb5addf38c.png "插件预览图片")