Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
zly2006 committed Nov 14, 2024
1 parent 2b86c2f commit 10a6a8c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ The advanced backup mod for fabric.
## Usage

### Commands
```
/xb status
```
Displays the current status of the backup process.

```
/xb create [comment]
```
Expand All @@ -28,6 +33,13 @@ Lists all backups.
```
Restores a backup with the specified ID.

You can add `--stop` at the end if you want to stop the server after restoring, this may fix some compatibility issues.

```
/xb backup-interval [interval]
```
Checks or sets the backup interval in seconds. Set to 0 to disable automatic backups.

```
/xb delete <id>
```
Expand All @@ -53,6 +65,11 @@ Fabric 的高级备份模组。
## 用法

### 命令
```
/xb status
```
显示备份过程的当前状态。

```
/xb create [comment]
```
Expand All @@ -68,6 +85,13 @@ Fabric 的高级备份模组。
```
回档到指定 ID 的备份。

如果你想在回档后停止服务器,可以在末尾加上 `--stop`,这可能会修复一些兼容性问题。

```
/xb backup-interval [interval]
```
检查或设置备份间隔(秒)。设置为 0 以禁用自动备份。

```
/xb delete <id>
```
Expand Down
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import net.fabricmc.loom.task.GenerateSourcesTask

plugins {
kotlin("jvm") version "2.0.21"
kotlin("plugin.serialization") version "2.0.0"
Expand Down Expand Up @@ -119,6 +121,9 @@ allprojects {

}

tasks.withType<GenerateSourcesTask> {
}

subprojects {
configurations {
modRuntimeOnly {
Expand Down
22 changes: 22 additions & 0 deletions xb-1.18/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import net.fabricmc.loom.task.GenerateSourcesTask

loom {
// accessWidenerPath = file("src/main/resources/xb120.accesswidener")
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.withType<JavaCompile>().configureEach {
options.release = 17
}

kotlin {
jvmToolchain(17)
}

tasks.withType<GenerateSourcesTask> {
enabled = false
}

0 comments on commit 10a6a8c

Please sign in to comment.