26 lines
		
	
	
		
			No EOL
		
	
	
		
			610 B
		
	
	
	
		
			Kotlin
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			No EOL
		
	
	
		
			610 B
		
	
	
	
		
			Kotlin
		
	
	
	
	
	
| plugins {
 | |
|   kotlin("jvm") version "2.0.0"
 | |
|   id("xyz.jpenilla.run-paper") version "2.3.0"
 | |
| }
 | |
| 
 | |
| repositories {
 | |
|     mavenCentral()
 | |
|     maven("https://repo.papermc.io/repository/maven-public/")
 | |
| }
 | |
| 
 | |
| dependencies {
 | |
|     compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
 | |
| }
 | |
| 
 | |
| java {
 | |
|     toolchain.languageVersion.set(JavaLanguageVersion.of(21))
 | |
| }
 | |
| 
 | |
| tasks {
 | |
|   runServer {
 | |
|     // Configure the Minecraft version for our task.
 | |
|     // This is the only required configuration besides applying the plugin.
 | |
|     // Your plugin's jar (or shadowJar if present) will be used automatically.
 | |
|     minecraftVersion("1.21")
 | |
|   }
 | |
| } |