Skip to content

Commit cd4498b

Browse files
committed
force accept tos
1 parent ac076ff commit cd4498b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

OpenAudioMc/Plugin/src/main/java/com/craftmend/openaudiomc/generic/authentication/AuthenticationService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public void initialize() {
4848
// add provisioning key, if we have it, look for it in the launch properties
4949
String provisioningKey = System.getProperty("openaudio.provisioningKey");
5050
if (provisioningKey != null) {
51+
// a valid key requires a previous valid installation, and thus prior acceptance of the TOS.
52+
// It's okay to bypass the check later in this case.
53+
OpenAudioMc.getInstance().getConfiguration().setBoolean(StorageKey.LEGAL_ACCEPTED_TOS_AND_PRIVACY, true);
54+
OpenAudioMc.getInstance().getConfiguration().saveAll(false);
5155
registrationProvider.setQuery("provisioningKey", provisioningKey);
5256
}
5357

0 commit comments

Comments
 (0)