Compare commits

..

7 Commits

Author SHA1 Message Date
often
b862de2fdc Typo fix 2024-03-20 02:28:06 +03:00
Auxilor
e5064aabef libreforge-updater 2023-06-10 13:32:44 +01:00
Auxilor
558431d39c libreforge-updater 2023-06-05 16:26:49 +01:00
Auxilor
eca0980869 Fixed Publications 2023-06-03 18:03:02 +01:00
Auxilor
5645698d3f libreforge-updater 2023-06-03 15:45:34 +01:00
Auxilor
d4cf108d52 Invisible players will no longer have visible pets 2023-06-03 14:00:18 +01:00
Auxilor
95c8fe5277 libreforge-updater 2023-06-01 12:33:34 +01:00
4 changed files with 21 additions and 9 deletions

View File

@@ -11,9 +11,12 @@ dependencies {
publishing { publishing {
publications { publications {
register("maven", MavenPublication::class) { register<MavenPublication>("maven") {
from(components["java"]) groupId = project.group.toString()
version = project.version.toString()
artifactId = rootProject.name artifactId = rootProject.name
artifact(rootProject.tasks.shadowJar.get().archiveFile)
} }
} }

View File

@@ -36,6 +36,11 @@ class PetDisplay(
val pet = player.activePet val pet = player.activePet
if (pet != null) { if (pet != null) {
if (player.isInvisible) {
remove(player)
return
}
@Suppress("DEPRECATION") @Suppress("DEPRECATION")
stand.customName = plugin.configYml.getString("pet-entity.name") stand.customName = plugin.configYml.getString("pet-entity.name")
.replace("%player%", player.displayName) .replace("%player%", player.displayName)
@@ -77,6 +82,10 @@ class PetDisplay(
} }
private fun getOrNew(player: Player): ArmorStand? { private fun getOrNew(player: Player): ArmorStand? {
if (player.isInvisible) {
return null
}
val tracked = trackedEntities[player.uniqueId] val tracked = trackedEntities[player.uniqueId]
val existing = tracked?.stand val existing = tracked?.stand

View File

@@ -68,14 +68,14 @@ permissions:
default: true default: true
ecopets.xpmultiplier.50percent: ecopets.xpmultiplier.50percent:
description: Gives the player 50% more skill experience description: Gives the player 50% more pet experience
default: false default: false
ecopets.xpmultiplier.double: ecopets.xpmultiplier.double:
description: Gives the player 2x skill experience description: Gives the player 2x pet experience
default: false default: false
ecopets.xpmultiplier.triple: ecopets.xpmultiplier.triple:
description: Gives the player 3x skill experience description: Gives the player 3x pet experience
default: false default: false
ecopets.xpmultiplier.quadruple: ecopets.xpmultiplier.quadruple:
description: Gives the player 4x skill experience description: Gives the player 4x pet experience
default: false default: false

View File

@@ -1,5 +1,5 @@
#libreforge-updater #libreforge-updater
#Tue May 30 16:10:49 BST 2023 #Sat Jun 10 13:32:44 BST 2023
kotlin.code.style=official kotlin.code.style=official
libreforge-version=4.17.0 libreforge-version=4.19.0
version=2.16.0 version=2.18.0