Default tag to their rank's tag

This commit is contained in:
business-goose 2022-03-21 20:08:09 +00:00
parent 8e4f0381e2
commit 37f7c97637

View file

@ -1,12 +1,15 @@
package me.StevenLawson.TotalFreedomMod.config; package me.StevenLawson.TotalFreedomMod.config;
import me.StevenLawson.TotalFreedomMod.TotalFreedomMod; import me.StevenLawson.TotalFreedomMod.TotalFreedomMod;
import me.StevenLawson.TotalFreedomMod.player.PlayerRank;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.UUID;
public class TagConfiguration { public class TagConfiguration {
private static Plugin plugin = JavaPlugin.getPlugin(TotalFreedomMod.class); private static Plugin plugin = JavaPlugin.getPlugin(TotalFreedomMod.class);
@ -35,7 +38,7 @@ public class TagConfiguration {
} catch (IOException e){ } catch (IOException e){
e.printStackTrace(); e.printStackTrace();
} }
return ""; return PlayerRank.fromSender(Bukkit.getPlayer(UUID.fromString(playerUuid))).getPrefix();
} }
} else return null; } else return null;
} }