diff --git a/README.md b/README.md index 49ae439..d4c3f01 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Downloads](http://cf.way2muchnoise.eu/full_359893_downloads.svg) ![Available for](http://cf.way2muchnoise.eu/versions/359893.svg)](https://www.curseforge.com/minecraft/mc-mods/textile-backup) -Small, configurable, fully server-side backup mod for Fabric +Small, configurable, fully server-side backup mod for Fabric Commands look like that: /backup 'operation'. @@ -20,4 +20,6 @@ Feel free to use this mod in your modpack or on server! ### Important * Time format used by this mod is: dd.MM.yyyy_HH:mm:ss -* _This mod contains **Cotton Config** and its dependencies as jars in jar, which are property of **CottonMC**_ \ No newline at end of file +* _This mod contains **Cotton Config** and its dependencies as jars in jar, which are property of **CottonMC**_ + +If you have any suggestions or found a problem please report it on github. \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index fbe82e7..3643993 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,17 +1,14 @@ # Done to increase the memory available to gradle. org.gradle.jvmargs=-Xmx1G -# Fabric Properties - # check these on https://fabricmc.net/use - minecraft_version=1.15.2 - yarn_mappings=1.15.2+build.7 - loader_version=0.7.6+build.179 + minecraft_version=20w06a + yarn_mappings=20w06a+build.15 + loader_version=0.7.8+build.184 + + #Fabric api + fabric_version=0.4.32+build.296-1.16 # Mod Properties - mod_version = 1.0.0-1.15.2 + mod_version = 1.0.2-20w06a maven_group = net.szum123321 - archives_base_name = textile_backup - -# Dependencies - # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api - fabric_version=0.4.29+build.290-1.15 + archives_base_name = textile_backup \ No newline at end of file diff --git a/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java b/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java index 38f5dc5..d30b1fa 100644 --- a/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java +++ b/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java @@ -43,10 +43,12 @@ public class BackupHelper { StringBuilder builder = new StringBuilder(); builder.append("Backup started by: "); + if( ctx != null ) builder.append(ctx.getName()); else builder.append("SERVER"); + builder.append(" on: "); builder.append(getDateTimeFormatter().format(now)); diff --git a/src/main/java/net/szum123321/textile_backup/mixin/MinecraftServerMixin.java b/src/main/java/net/szum123321/textile_backup/mixin/MinecraftServerMixin.java index aba46c1..e968287 100644 --- a/src/main/java/net/szum123321/textile_backup/mixin/MinecraftServerMixin.java +++ b/src/main/java/net/szum123321/textile_backup/mixin/MinecraftServerMixin.java @@ -1,5 +1,7 @@ package net.szum123321.textile_backup.mixin; +import net.fabricmc.fabric.impl.tag.extension.FabricTagHooks; +import net.fabricmc.loader.api.FabricLoader; import net.minecraft.server.MinecraftServer; import net.minecraft.server.PlayerManager; import net.szum123321.textile_backup.TextileBackup; diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index fd12897..571ea75 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -29,6 +29,6 @@ "depends": { "fabricloader": ">=0.7.2", "fabric": "*", - "minecraft": "1.15.2" + "minecraft": "1.16.*" } }