-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7383d51
commit 1b9c04a
Showing
6 changed files
with
53 additions
and
49 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
loader-common/src/main/java/org/cyclops/flopper/GeneralConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.cyclops.flopper; | ||
|
||
import org.cyclops.cyclopscore.config.ConfigurablePropertyCommon; | ||
import org.cyclops.cyclopscore.config.extendedconfig.DummyConfigCommon; | ||
import org.cyclops.cyclopscore.helper.ModBaseCommon; | ||
|
||
/** | ||
* A config with general options for this mod. | ||
* @author rubensworks | ||
* | ||
*/ | ||
public class GeneralConfig extends DummyConfigCommon<ModBaseCommon<?>> { | ||
|
||
@ConfigurablePropertyCommon(category = "core", comment = "If an anonymous mod startup analytics request may be sent to our analytics service.") | ||
public static boolean analytics = true; | ||
|
||
@ConfigurablePropertyCommon(category = "core", comment = "If the version checker should be enabled.") | ||
public static boolean versionChecker = true; | ||
|
||
public GeneralConfig(ModBaseCommon<?> mod) { | ||
super(mod, "general"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
loader-neoforge/src/main/java/org/cyclops/flopper/GeneralConfig.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
loader-neoforge/src/main/java/org/cyclops/flopper/GeneralConfigNeoForge.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.cyclops.flopper; | ||
|
||
import org.cyclops.cyclopscore.init.ModBase; | ||
import org.cyclops.cyclopscore.tracking.Analytics; | ||
import org.cyclops.cyclopscore.tracking.Versions; | ||
|
||
/** | ||
* @author rubensworks | ||
*/ | ||
public class GeneralConfigNeoForge extends GeneralConfig { | ||
public GeneralConfigNeoForge() { | ||
super(FlopperNeoForge._instance); | ||
} | ||
|
||
@Override | ||
public void onRegistered() { | ||
if(analytics) { | ||
Analytics.registerMod((ModBase) getMod(), Reference.GA_TRACKING_ID); | ||
} | ||
if(versionChecker) { | ||
Versions.registerMod((ModBase) getMod(), FlopperNeoForge._instance, "https://raw.githubusercontent.com/CyclopsMC/Versions/master/" + getMod().getModHelpers().getMinecraftHelpers().getMinecraftVersionMajorMinor() + "/Flopper.txt"); | ||
} | ||
} | ||
} |