mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 22:54:57 +00:00
Default tag to their rank's tag
This commit is contained in:
parent
8e4f0381e2
commit
37f7c97637
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue