我的世界mysql插件_MySQL Inventory Bridge — 跨服背包[1.7-1.15]【Bukkit】

356c712bc0f32b39b2396967322f8f1b.png

插件介绍:

很简单,就是用数据保存玩家数据,BC用的不解释

在玩家加入和离开的事件中插件会载入和保存数据到数据库

前置:

{clink t="【Bukkit】ProtocolLib — 前置插件[全版本]" d="使用标准的Bukkit API无法执行某些任务,并且可能需要直接使用甚至修改Minecraft。一种常用技术是修改传入和传出数据包或将自定义数据包注入流中。但是,这样做很麻烦,而且大多数实现会在Minecraft的新版本发布后立即中断,这主要是由于混淆。" l="https://www.mmcee.cn/195.html"}

还需要个 MySQL数据库

安装说明

将插件放置在服务器plugins文件夹中。

启动服务器以生成配置,然后停止服务器。

打开配置并设置数据库连接详细信息。您需要创建数据库,然后插件将自行创建表。

启动服务器。完成,享受。根据需要在任意数量的服务器上共享exp。

Place the plugin in the server plugins folder.

Start the server to generate the config, then stop the server.

Open the config and set up the database connection details. You need to create the database, then the plugin will create the tables on it's own.

Start the Server. Done, enjoy. Share exp on as many servers as you need.

没有指令和权限

配置文件:#MySQL Database details

database:

mysql:

#MySQL server address

host: 127.0.0.1

#MySQL server port (default 3306)

port: 3306

#Database name (NOTE! You need to create the database, then the plugin will create the tables.)

databaseName: 'mydatabase'

#Tables name (the plugin will auto create it)

tableName: 'meb_inventory'

#User name

user: 'admin'

#User password

password: 'cheesecake'

#SSL connection

sslEnabled: false

#Remove inactive users from the database. This maintenance task will start each server start with a 2min delay.

maintenance:

#Enable or disable database maintenance. | (true or false)

enabled: false

#Inactivity in days. Default 60 days.

inactivity: 60

#Other configurable options

General:

#Save online players accounts to database task. Disable this task and data will only be saved when the player disconnects.

#To limit data loss in case the server crashes enable this saving task. It runs async so there will be no lag involved.

saveDataTask:

#Enable or disable the data save task. | (true or false)

enabled: true

#Time between data saves in minutes. | Default 3 min.

interval: 3

#Hide the data save task log messages.

hideLogMessages: false

#Login economy sync delay in milliseconds (default 1000 milliseconds = 1 second)

#This delay is needed in bungeecord setups, because when you move between servers the quit and login takes place almost in the same time.

loginSyncDelay: 1000

#Set this to false to disable the sync of players armor. | (true or false)

syncArmorEnabled: true

#Enable modded items support. This will require the ProtocolLib dependency! | (true or false)

#This is needed if you experience item data loss on some mods that save NBT data.

enableModdedItemsSupport: false

#Disable sounds generated by this plugin. The sync confirmation sound for example. | (true or false)

disableSounds: false

#Debug console messages.

Debug:

#Inventory sync debug messages.

InventorySync: false

#Chat Messages with full color and format codes support. Disable any message by setting it to '' | Example> syncComplete: ''

#Minecraft Color and Format Codes: http://minecraft.gamepedia.com/Formatting_codes

ChatMessages:

syncComplete: '&2[MIB] &aData sync complete!'

inventorySyncError: '&4[WARNING] &cError loading your inventory! Contact the staff team.'

inventorySyncBackup: '&6[!] &eRestored the local inventory! Don''t leave items in your inventory when you disconnect!'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值