MinecraftDev
                                
                                 MinecraftDev copied to clipboard
                                
                                    MinecraftDev copied to clipboard
                            
                            
                            
                        Support for Nukkit Plugins
Minecraft Development for IntelliJ plugin version
2023.2-1.6.6
Description of the feature request
Add support for making a project of the nukkit plugin.
Do you have any documentation on this?
Nukkit Wiki : https://cloudburstmc.org/wiki/nukkit
Gradle (build.gradle) file :
plugins {
	id 'java'
}
group = 'com.github.deathgod7'
version = '1.0-SNAPSHOT'
repositories {
	mavenCentral()
	maven {
		name = "nukkit-release"
		url = "https://repo.opencollab.dev/maven-releases"
	}
	maven {
		name = "nukkit-snapshot"
		url = "https://repo.opencollab.dev/maven-snapshots/"
	}
}
dependencies {
	//noinspection VulnerableLibrariesLocal
	compileOnly "cn.nukkit:nukkit:1.0-SNAPSHOT"
}
def targetJavaVersion = 8
java {
	def javaVersion = JavaVersion.toVersion(targetJavaVersion)
	sourceCompatibility = javaVersion
	targetCompatibility = javaVersion
	if (JavaVersion.current() < javaVersion) {
		toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
	}
}
tasks.withType(JavaCompile).configureEach {
	if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
		options.release = targetJavaVersion
	}
}
Main Class File
package com.github.deathgod7.unexpectedspawnnukkit;
import cn.nukkit.plugin.PluginBase;
public final class UnexpectedSpawn extends PluginBase {
    @Override
    public void onEnable() {
        // Plugin startup logic
    }
    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }
}
And to note, it's not in maven-releases but in maven-snapshots. Repo Browser : https://repo.opencollab.dev/#/