Skip to content

Commit

Permalink
Remove resourcepack.host uploader preset
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Oct 23, 2023
1 parent 63eec9f commit 630a11b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import xyz.xenondevs.nova.data.config.entry
import xyz.xenondevs.nova.data.resources.ResourceGeneration
import xyz.xenondevs.nova.data.resources.builder.ResourcePackBuilder
import xyz.xenondevs.nova.data.resources.upload.service.CustomMultiPart
import xyz.xenondevs.nova.data.resources.upload.service.ResourcePackDotHost
import xyz.xenondevs.nova.data.resources.upload.service.S3
import xyz.xenondevs.nova.data.resources.upload.service.SelfHost
import xyz.xenondevs.nova.data.resources.upload.service.Xenondevs
Expand All @@ -37,7 +36,7 @@ private val ENABLE_PROMPT_BYPASS_PERMISSION by MAIN_CONFIG.entry<Boolean>("resou
)
internal object AutoUploadManager {

internal val services = arrayListOf(Xenondevs, SelfHost, CustomMultiPart, S3, ResourcePackDotHost)
internal val services = arrayListOf(Xenondevs, SelfHost, CustomMultiPart, S3)

private val resourcePackCfg by MAIN_CONFIG.map { it.node("resource_pack") }
private val autoUploadCfg by MAIN_CONFIG.map { it.node("resource_pack", "auto_upload") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,4 @@ internal object CustomMultiPart : MultiPart() {
}
}

}

internal object ResourcePackDotHost : MultiPart() {

override val names = listOf("resourcepack.host")
override val url = "https://resourcepack.host/index.php"
override var filePartName = "pack"
override var urlRegex = Regex("""(http://resourcepack\.host/dl/[^"]+)""")
override val extraParams = emptyMap<String, String>()

override fun loadConfig(cfg: ConfigurationNode) = Unit

}
3 changes: 1 addition & 2 deletions nova/src/main/resources/configs/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ resource_pack:
# The auto uploader automatically uploads the resource pack after generation.
# READ SETUP GUIDE: https://xenondevs.xyz/docs/nova/admin/setup/#automatic-resource-pack-hosting
auto_upload:
enabled: true
service: resourcepack.host
enabled: false

# Settings affecting the resource pack prompt
prompt:
Expand Down

0 comments on commit 630a11b

Please sign in to comment.