add player to a clientside team removing nametags

This commit is contained in:
2023-06-18 02:52:23 +02:00
parent f74658db28
commit f924c4dd55
6 changed files with 114 additions and 58 deletions
+31 -35
View File
@@ -1,49 +1,45 @@
plugins {
id 'java'
id 'io.papermc.paperweight.userdev' version("1.5.5")
`java-library`
id("io.papermc.paperweight.userdev") version "1.5.5"
id("xyz.jpenilla.run-paper") version "2.1.0" // Adds runServer and runMojangMappedServer tasks for testing
}
group = 'me.youhavetrouble'
version = '1.0'
group = "me.youhavetrouble"
version = "1.0.0-SNAPSHOT"
description = "Nameplates using display entities"
repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
java {
// Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
dependencies {
paperweight.paperDevBundle("1.20-R0.1-SNAPSHOT")
compileOnly "io.papermc.paper:paper-api:1.20-R0.1-SNAPSHOT"
}
def targetJavaVersion = 17
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
tasks {
assemble {
dependsOn(reobfJar)
}
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('paper-plugin.yml') {
expand props
javadoc {
options.encoding = Charsets.UTF_8.name()
}
}
processResources {
filteringCharset = Charsets.UTF_8.name()
val props = mapOf(
"name" to project.name,
"version" to project.version,
"description" to project.description,
"apiVersion" to "1.20"
)
inputs.properties(props)
filesMatching("paper-plugin.yml") {
expand(props)
}
}
}