Update to 1.18.2

This commit is contained in:
Len 2022-05-22 10:43:59 +02:00
parent 7cc66db3ce
commit c287f12634
3 changed files with 5 additions and 4 deletions

View File

@ -44,6 +44,6 @@ tasks {
}
dependencies {
compileOnly("com.alttd:Galaxy-API:1.18.1-R0.1-SNAPSHOT")
compileOnly("com.alttd:Galaxy-API:1.18.2-R0.1-SNAPSHOT")
compileOnly("com.github.LeonMangler:PremiumVanishAPI:2.7.11-2")
}

View File

@ -4,6 +4,7 @@ dependencyResolutionManagement {
repositories {
mavenLocal()
mavenCentral()
maven("https://repo.destro.xyz/snapshots") // Galaxy
maven("https://papermc.io/repo/repository/maven-public/") // Paper
maven("https://jitpack.io") //PremiumVanish
}

View File

@ -10,8 +10,8 @@ import com.alttd.storage.PlayerSettings;
import com.alttd.util.Logger;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.MiniMessage;
import net.kyori.adventure.text.minimessage.Template;
import net.kyori.adventure.text.minimessage.template.TemplateResolver;
import net.kyori.adventure.text.minimessage.tag.resolver.Placeholder;
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
@ -62,7 +62,7 @@ public class OpenParticleGUI extends DefaultGUI {
ItemStack itemStack = new ItemStack(particlesType.getMaterial());
ItemMeta itemMeta = itemStack.getItemMeta();
itemMeta.displayName(miniMessage.deserialize(Config.PARTICLE_TYPE_BUTTON_NAME,
TemplateResolver.resolving(Template.template("name", particlesType.getDisplayName()))));
TagResolver.resolver(Placeholder.parsed("name", particlesType.getDisplayName()))));
itemStack.setItemMeta(itemMeta);
particlesType.setItemStack(itemStack);
});