Advertisement
Guest User

Untitled

a guest
May 8th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.83 KB | None | 0 0
  1. plugins {
  2.     id("xyz.jpenilla.run-paper") version "2.3.1"
  3. }
  4.  
  5. tasks {
  6.     jar {
  7.         enabled = false
  8.     }
  9.  
  10.     build {
  11.         dependsOn("shadowJar")
  12.     }
  13.  
  14.     var version = "1.21.4"
  15.     var plugins = runPaper.downloadPluginsSpec {
  16.         url("https://github.com/ViaVersion/ViaVersion/releases/download/5.3.2/ViaVersion-5.3.1.jar")
  17.         url("https://github.com/ViaVersion/ViaBackwards/releases/download/5.3.2/ViaBackwards-5.3.1.jar")
  18.     }
  19.  
  20.     runServer {
  21.         minecraftVersion(version)
  22.         runDirectory = file("run/paper/$version")
  23.  
  24.         downloadPlugins {
  25.             from(plugins)
  26.         }
  27.     }
  28.  
  29.     runPaper.folia.registerTask() {
  30.         minecraftVersion(version)
  31.         runDirectory = file("run/folia/$version")
  32.  
  33.         downloadPlugins {
  34.             from(plugins)
  35.         }
  36.     }
  37. }
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement