Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
new instant respawn warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MicrocontrollersDev committed Oct 27, 2022
1 parent 74d6ba5 commit a22ae91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ blossom {
}

version = mod_version
group = "cc.polyfrost"
group = "dev.microcontrollers"
base {
archivesName.set("$mod_id-$platform")
}
Expand Down
13 changes: 11 additions & 2 deletions src/main/java/dev/microcontrollers/autorespawn/ARConfig.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package dev.microcontrollers.autorespawn;

import cc.polyfrost.oneconfig.config.Config;
import cc.polyfrost.oneconfig.config.annotations.Info;
import cc.polyfrost.oneconfig.config.annotations.Switch;
import cc.polyfrost.oneconfig.config.data.InfoType;
import cc.polyfrost.oneconfig.config.data.Mod;
import cc.polyfrost.oneconfig.config.data.ModType;

Expand All @@ -13,11 +15,18 @@ public class ARConfig extends Config {
public static boolean autoRespawn;

@Switch(
name = "Instant Respawn (most likely bannable)",
category = "General", subcategory = "General"
name = "Instant Respawn",
category = "General", subcategory = "Extras"
)
public static boolean instantRespawn;

@Info(
text = "Insant Respawn may be bannable on most servers! Use at your own risk!",
size = 2,
type = InfoType.WARNING
)
private boolean instantRespawnWarning = false;

public ARConfig() {
super(new Mod("Auto Respawn", ModType.UTIL_QOL), "config.json");
initialize();
Expand Down

0 comments on commit a22ae91

Please sign in to comment.