Skip to content

unimined/McRemoteHotswap

Repository files navigation

Remote Hotswap

This mod/gradle plugin allows for hotswapping of a mod on a forge/fabric instance remotely, this means you don't have to host the server within your IDE or session.

How to use

  1. place jar as mod on forge/fabric
  2. edit mchotswap.properties in the minecraft folder
apiKey=changeme!
port=25401
  1. add task to gradle:
// settings.gradle
pluginManagement {
    repositories {
        maven {
            url = "https://maven.wagyourtail.xyz/releases"
        }
        maven {
            url = "https://maven.wagyourtail.xyz/snapshots"
        }
        mavenCentral()
    }
}

// build.gradle
plugin {
    id "xyz.wagyourtail.mchotswap" version "1.0.0-SNAPSHOT"
}

tasks.register("hotswapUpload", UploadToDevServer) {
    inputFile = tasks.remapJar.outputs.files.singleFile
    modid = "modid"
    serverUrl = "http://localhost:25401"
    serverKey = "changeme!"
}

hotswapUpload.dependsOn remapJar
  1. profit

About

Remote hot swap or restarting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published