From 37f7c97637a797eb6a65868240a4acbf01b91a10 Mon Sep 17 00:00:00 2001 From: business-goose Date: Mon, 21 Mar 2022 20:08:09 +0000 Subject: [PATCH] Default tag to their rank's tag --- .../TotalFreedomMod/config/TagConfiguration.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/StevenLawson/TotalFreedomMod/config/TagConfiguration.java b/src/main/java/me/StevenLawson/TotalFreedomMod/config/TagConfiguration.java index ee09b7d..85512a5 100644 --- a/src/main/java/me/StevenLawson/TotalFreedomMod/config/TagConfiguration.java +++ b/src/main/java/me/StevenLawson/TotalFreedomMod/config/TagConfiguration.java @@ -1,12 +1,15 @@ package me.StevenLawson.TotalFreedomMod.config; import me.StevenLawson.TotalFreedomMod.TotalFreedomMod; +import me.StevenLawson.TotalFreedomMod.player.PlayerRank; +import org.bukkit.Bukkit; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.java.JavaPlugin; import java.io.File; import java.io.IOException; +import java.util.UUID; public class TagConfiguration { private static Plugin plugin = JavaPlugin.getPlugin(TotalFreedomMod.class); @@ -35,7 +38,7 @@ public class TagConfiguration { } catch (IOException e){ e.printStackTrace(); } - return ""; + return PlayerRank.fromSender(Bukkit.getPlayer(UUID.fromString(playerUuid))).getPrefix(); } } else return null; }