跳到正文

MR InvSync

作者:michiruf

Fabric mod for syncing inventories and player data between minecraft servers

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

PRs Welcome
MIT license
Download on modrinth

MR InvSync

This is a fabric mod that allows you to sync player inventories, health, food level, experience, score, status effects
and advancements across multiple servers or single player minecraft worlds.
SQLite, MySQL and Postgres are supported as data backends.

Why this fork?

This mod was initially forked from MrNavaStar. His original mod can be found on
github and modrinth.
Reasons for this fork are:

  • At the time the project was forked, the database handling was messed up by using an all-in-one table for the player data defined in SQLib
  • At the time the project was forked, for each SQL call a database connection was established
  • Having a separate upstream for production environment testing
  • Details are list in issue #1

You can support MrNavaStar by buying him a coffee!.

Installation

This mod requires Fabric and Fabric API.

This mod is available on modrinth with slug mr-invsync.
The project source is available on github/michiruf with the latest
readme here.

The configuration of the database must be identical between all servers that shall sync the inventory.

Example configuration

Path: /config/InvSync.mcfg

DATABASE_TYPE=SQLITE
DEBUG_DELETE_TABLES=false
SQLITE_PATH=./InvSync.db
MYSQL_DATABASE=InvSync
MYSQL_ADDRESS=mysql-host
MYSQL_PORT=3306
MYSQL_USERNAME=username
MYSQL_PASSWORD=password
POSTGRES_DATABASE=InvSync
POSTGRES_ADDRESS=postgres-host
POSTGRES_PORT=5432
POSTGRES_USERNAME=username
POSTGRES_PASSWORD=password
SYNC_INVENTORY=true
SYNC_ENDER_CHEST=true
SYNC_HEALTH=true
SYNC_FOOD_LEVEL=true
SYNC_XP_LEVEL=true
SYNC_SCORE=true
SYNC_STATUS_EFFECTS=true
SYNC_ADVANCEMENTS=true
SYNCHRONIZATION_DELAY=true
SYNCHRONIZATION_DELAY_SECONDS=1
SYNCHRONIZATION_DELAY_METHOD=SLEEP
INITIAL_SYNC_OVERWRITE_ENABLED=true
INITIAL_SYNC_SERVER_NAME=ServerA

License

MIT License

常见问题

MR InvSync 支持哪些 Minecraft 版本?

MR InvSync 支持 Minecraft Java 版 1.19.1–1.19.3,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

MR InvSync 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

michiruf 的其他作品

查看全部 →