diff options
author | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2021-08-25 09:52:20 -0400 |
---|---|---|
committer | DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> | 2021-08-25 09:52:20 -0400 |
commit | 61afd7b0843ff4a4438eb9f97c4ba29e57408aa5 (patch) | |
tree | 3fa8f89498d01cb094d9bfc4d9c09ab47c474f5b /src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java | |
parent | 12888a9eb0469a5462e497a29eb4d3d15bb48f3c (diff) | |
download | PerspectiveModv4-61afd7b0843ff4a4438eb9f97c4ba29e57408aa5.tar.gz PerspectiveModv4-61afd7b0843ff4a4438eb9f97c4ba29e57408aa5.tar.bz2 PerspectiveModv4-61afd7b0843ff4a4438eb9f97c4ba29e57408aa5.zip |
Revert "this is why we can't have nice things"
This reverts commit 12888a9eb0469a5462e497a29eb4d3d15bb48f3c.
Diffstat (limited to 'src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java')
-rw-r--r-- | src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java b/src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java new file mode 100644 index 0000000..dd10623 --- /dev/null +++ b/src/main/java/me/djtheredstoner/perspectivemod/config/PerspectiveModConfig.java @@ -0,0 +1,42 @@ +package me.djtheredstoner.perspectivemod.config; + +import gg.essential.vigilance.Vigilant; +import gg.essential.vigilance.data.Property; +import gg.essential.vigilance.data.PropertyType; + +import java.io.File; + +public class PerspectiveModConfig extends Vigilant { + + @Property( + type = PropertyType.SWITCH, + name = "Perspective Mod", + category = "General", + subcategory = "General", + description = "Toggle Perspective Mod entirely." + ) + public boolean modEnabled = true; + + @Property( + type = PropertyType.SWITCH, + name = "Hold Mode", + category = "General", + subcategory = "General", + description = "Return to normal perspective after releasing keybind." + ) + public boolean holdMode = true; + + @Property( + type = PropertyType.SWITCH, + name = "Invert Pitch", + category = "General", + subcategory = "General", + description = "Invert the pitch while in perspective (same as blc/lunar)." + ) + public boolean invertPitch = false; + + public PerspectiveModConfig() { + super(new File("./config/perspectivemodv4.toml")); + initialize(); + } +} |