1
0
Simple tweaks for my personal Minecraft server
Go to file
2020-10-28 01:30:10 +00:00
scripts Add script to migrate player data to SQLite 2020-10-25 15:59:45 +00:00
src/main Add persistent flight 2020-10-28 00:24:51 +00:00
.gitignore Add logs folder to .gitignore 2020-10-21 20:58:26 +00:00
build.gradle Add SQLite as dependency 2020-08-10 00:43:35 +00:00
gradle.properties Bump to 1.2.0 2020-10-25 16:03:52 +00:00
LICENSE.txt Initial commit 2020-01-07 15:53:42 +00:00
README.txt Add more information to README.txt 2020-10-28 01:30:10 +00:00
settings.gradle Initial commit 2020-01-07 15:53:42 +00:00

-----------------------------
    minecraft-tweaks-2a03
-----------------------------

Information
-----------

This repository contains simple modifications for the 2a03.party Minecraft
server. I have replaced the patches with a Fabric mod.

Send questions, issues, and patches to flewkey@2a03.party.

Commands
--------

Some in-game commands are included.

/fly: Allow flying (TODO: Disable this in config)
/hat: Swap items between main hand and head
/head [username]: Get a playerhead (TODO: Specify optional amount)
/home: Teleport to home
/home set: Set your home
/spawn: Teleport to spawn

There are also commands which can only be used by operators.

/config reload: Reloads the config file
/home sudoset <uuid>: Set another user's home (TODO: Accept usernames)
/spawn set: Set the spawn location

Config
------

The config is stored in /config/minecraft-tweaks-2a03/2a03.json

disableTntExplosions: Disables TNT explosions
disableRespawnAnchorExplosions: Disables respawn anchor explosions
iphubApiKey: API key for iphub.info, currently unused
persistentFlight: Save players who disconnect mid-flight
spawn: The spawn location. To set it in-game, use /spawn set

Database
--------

Some features such as /home use a SQLite database to store data. Nobody else
uses this mod (as far as I know), so any changes to existing tables will have
to be made manually. My favourite tool for managing SQLite databases is
sqlitebrowser, which you can install with your package manager or from the
website: https://sqlitebrowser.org/.

If you are using an old version which stores player data in the config, you can
migrate their homes to the database using /scripts/migrate_players.py

For information about the tables in the database, refer to the source code. Here
is the relevant file: /src/main/java/party/_2a03/mc/util/Database.java

Building
--------

Building is handled by Gradle and Fabric Loom. You can install Gradle using your
package manager, or you can install it manually: https://gradle.org/install/.
Then, run "gradle build" and it should take care of everything. The mod will be
available in /build/libs/minecraft-tweaks-2a03.jar. You can also test changes
using "gradle runServer". For more information about Gradle and Loom, refer to
the appropriate docs.