forked from MrNavaStar/InvSync
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
977 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
# For any reason, specifying this in the modrinth step does not work? | ||
# But it is also well documented here, so this should be ok to do | ||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check tag condition | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: echo "Ref is a tag" | ||
|
||
- name: Check out project | ||
if: success() | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
if: success() | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'microsoft' | ||
|
||
- name: Setup Gradle | ||
if: success() | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-version: 7.4.2 | ||
|
||
- name: Build | ||
if: success() | ||
run: gradle remapJar | ||
|
||
- name: Release on GitHub | ||
if: success() && startsWith(github.ref, 'refs/tags/') # Failsafe check again | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
**/libs/invsync-*.jar | ||
README.md | ||
CHANGELOG.md | ||
LICENSE | ||
body_path: CHANGELOG.md | ||
draft: false | ||
prerelease: false | ||
fail_on_unmatched_files: true | ||
|
||
- name: Upload to modrinth | ||
if: success() | ||
run: gradle modrinth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,68 @@ | ||
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)\ | ||
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) | ||
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/) | ||
|
||
[![name](https://github.com/modrinth/art/blob/main/Branding/Badge/badge-dark__184x72.png?raw=true)](https://modrinth.com/mod/invsync) | ||
|
||
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/G2G4DZF4D) | ||
# InvSync | ||
|
||
<img src="https://github.com/MrNavaStar/invSync/blob/master/src/main/resources/assets/invsync/icon.png" width="300" height="300"> | ||
<img src="https://github.com/michiruf/MCInvSync/blob/master/src/main/resources/assets/invsync/icon.png" width="300" height="300"> | ||
|
||
# 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! This is accomplished using a sql database | ||
(SQLite and MySQL supported. SQLite will be setup automatically, you must set up MySQL). Most mods should have no | ||
problem running alongside, and modded items will also be synchronized. | ||
|
||
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! This is accomplished using an sql database (SQLite and MySQL supported. SQLite will be setup automatically, you must set up MySQL). Most mods should have no problem running along side, and modded items will also be sync'd. | ||
[![name](https://github.com/modrinth/art/blob/main/Branding/Badge/badge-dark__184x72.png?raw=true)](https://modrinth.com/mod/mr-invsync) | ||
|
||
This mod uses [SQLib](https://github.com/MrNavaStar/SQLib) as a backend. Feel free to use it in your own projects! | ||
|
||
## Support Me | ||
## Support MrNavaStar | ||
|
||
You can support me by [buying me a coffee!](https://ko-fi.com/mrnavastar) | ||
This mod was initially forked from MrNavaStar. | ||
You can support MrNavaStar by [buying him a coffee!](https://ko-fi.com/mrnavastar) | ||
His original mod can be found [here](https://modrinth.com/mod/invsync). | ||
|
||
## Requirements | ||
|
||
- This mod requires [Fabric API](https://www.curseforge.com/minecraft/mc-mods/fabric-api) | ||
- You can get the mod on [Modrith](https://modrinth.com/mod/invsync) | ||
## Requirements | ||
|
||
## Getting Started | ||
* This mod requires [Fabric API](https://modrinth.com/mod/fabric-api) | ||
* You can get the mod on [Modrith](https://modrinth.com/mod/mr-invsync) | ||
|
||
Setup is very simple. Drop the mod into your mods folder on all the servers you want to sync. Starting a server will generate a config. The mod will not run until you edit the config. | ||
|
||
## IMPORTANT NOTES | ||
## Getting Started | ||
|
||
- Configs MUST be identical between all participating servers in order for the mod to function correctly. | ||
- This mod is known to have issues with: **GolfV** | ||
Setup is very simple. Drop the mod into your mods folder on all the servers you want to sync. Starting a server will | ||
generate a config. The mod will not run until you edit the config. | ||
|
||
* Configs MUST be identical between all participating servers in order for the mod to function correctly. | ||
* This mod is known to have issues with: **GolfV** | ||
|
||
|
||
## Example configuration | ||
|
||
Path: `/config/InvSync.mcfg` | ||
|
||
```properties | ||
DATABASE_TYPE=SQLITE | ||
SQLITE_PATH=./InvSync.db | ||
MYSQL_DATABASE=InvSync | ||
MYSQL_ADDRESS=database-host | ||
MYSQL_PORT=3306 | ||
MYSQL_USERNAME=username | ||
MYSQL_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 | ||
INITIAL_SYNC_OVERWRITE_ENABLED=true | ||
INITIAL_SYNC_SERVER_NAME=1 | ||
``` | ||
|
||
## Issues And Requests | ||
|
||
If you find any bugs or glitches, be sure to make a bug report under issues and I will do my best to fix it! Just as well if you have a cool idea for something that I should add, let me know and I will consider adding it! | ||
If you find any bugs or glitches, be sure to make a bug report under issues and I will do my best to fix it! Just as | ||
well if you have a cool idea for something that I should add, let me know and I will consider adding it! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
db: | ||
container_name: db | ||
image: mysql:5.7 | ||
ports: | ||
- '3306:3306' | ||
environment: | ||
- MYSQL_DATABASE=InvSync | ||
- MYSQL_USER=username | ||
- MYSQL_PASSWORD=password | ||
- MYSQL_RANDOM_ROOT_PASSWORD=yes | ||
volumes: | ||
# - './DATA/:/var/lib/mysql/' | ||
- '/etc/timezone:/etc/timezone:ro' | ||
tty: true | ||
restart: always | ||
|
||
phpmyadmin: | ||
container_name: phpmyadmin | ||
image: phpmyadmin/phpmyadmin | ||
ports: | ||
- '8080:80' | ||
environment: | ||
- PMA_HOST=db | ||
- PMA_USER=username | ||
- PMA_PASSWORD=password | ||
volumes: | ||
- '/etc/timezone:/etc/timezone:ro' | ||
links: | ||
- db | ||
tty: true | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx4G | ||
# Fabric Properties | ||
|
||
# Fabric Properties | ||
# check these on https://fabricmc.net/develop/ | ||
minecraft_version=1.19.1 | ||
yarn_mappings=1.19.1+build.1 | ||
loader_version=0.14.11 | ||
|
||
# Mod Properties | ||
mod_version=v2.3.1 | ||
maven_group=mrnavastar | ||
archives_base_name=invsync | ||
|
||
# Dependencies | ||
loader_version=0.14.12 | ||
fabric_version=0.58.5+1.19.1 | ||
sqlib_version=v1.3.2 | ||
microconfig_version=2.2.1 |
Oops, something went wrong.