Skip to content

Commit bf0c4a0

Browse files
authored
Merge pull request #11 from Kathund/main
feat: Fly Boost Warning
2 parents 19df7d4 + 31da8af commit bf0c4a0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,15 @@ jobs:
4444

4545
- name: Build
4646
run: ./gradlew build --no-daemon
47+
48+
- name: Move build artifact
49+
run: |
50+
mkdir upload
51+
mv versions/1.8.9-forge/build/libs/* upload/
52+
mv versions/1.12.2-forge/build/libs/* upload/
53+
54+
- name: Upload build artifact
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: built-mod-jar
58+
path: upload/PolySprint-*.jar

src/main/kotlin/org/polyfrost/polysprint/core/PolySprintConfig.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ package org.polyfrost.polysprint.core
2121
import cc.polyfrost.oneconfig.config.Config
2222
import cc.polyfrost.oneconfig.config.annotations.*
2323
import cc.polyfrost.oneconfig.config.core.OneKeyBind
24+
import cc.polyfrost.oneconfig.config.data.InfoType
2425
import cc.polyfrost.oneconfig.config.data.Mod
2526
import cc.polyfrost.oneconfig.config.data.ModType
2627
import cc.polyfrost.oneconfig.config.migration.VigilanceMigrator
@@ -94,6 +95,14 @@ object PolySprintConfig : Config(
9495
)
9596
var keybindToggleSneakKey = OneKeyBind(UKeyboard.KEY_NONE)
9697

98+
@Info(
99+
text = "Warning: Some servers may determine this to be a cheat and ban you for it. Use at your own risk",
100+
subcategory = "Fly Boost",
101+
type = InfoType.ERROR,
102+
size = 2
103+
)
104+
var ignored = false
105+
97106
@Switch(
98107
name = "Fly Boost",
99108
subcategory = "Fly Boost"

0 commit comments

Comments
 (0)