mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 22:04:57 +00:00
Update PlayerListener.java
This commit is contained in:
parent
54faffdfec
commit
d6b5585a49
1 changed files with 8 additions and 1 deletions
|
@ -5,6 +5,7 @@ import me.StevenLawson.TotalFreedomMod.Server;
|
|||
import me.StevenLawson.TotalFreedomMod.TotalFreedomMod;
|
||||
import me.StevenLawson.TotalFreedomMod.admin.AdminList;
|
||||
import me.StevenLawson.TotalFreedomMod.ban.BanManager;
|
||||
import me.StevenLawson.TotalFreedomMod.config.TagConfiguration;
|
||||
import me.StevenLawson.TotalFreedomMod.discord.bridge.DiscordBridge;
|
||||
import me.StevenLawson.TotalFreedomMod.command.CommandBlocker;
|
||||
import me.StevenLawson.TotalFreedomMod.commands.Command_landmine;
|
||||
|
@ -18,6 +19,7 @@ import me.StevenLawson.TotalFreedomMod.util.Utilities;
|
|||
import me.StevenLawson.TotalFreedomMod.world.AdminWorld;
|
||||
import me.StevenLawson.TotalFreedomMod.world.RollbackManager;
|
||||
import me.StevenLawson.TotalFreedomMod.world.RollbackManager.RollbackEntry;
|
||||
import org.apache.commons.lang.ObjectUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.block.Block;
|
||||
|
@ -896,7 +898,12 @@ public class PlayerListener implements Listener {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(TagConfiguration.getTag(player.getUniqueId().toString()) != null){
|
||||
String playerTag = TagConfiguration.getTag(player.getUniqueId().toString());
|
||||
if(!"".equalsIgnoreCase(playerTag)){
|
||||
PlayerData.getPlayerData(player).setTag(playerTag);
|
||||
}
|
||||
}
|
||||
DiscordBridge.transmitMessage(String.format("**%s joined the server**", player.getDisplayName()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue