插件介绍:
很简单,就是用数据保存玩家数据,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!'