Skip to content

Commit

Permalink
Fix SilverfishHandlerish name tag error
Browse files Browse the repository at this point in the history
  • Loading branch information
MetallicGoat committed Dec 20, 2022
1 parent 96cd8d1 commit 5476ac6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ protected void handleStop() { }

public static void updateDisplayName(Team team, Silverfish silverfish){

if(ConfigValue.silverfish_name_tag == null)
if(ConfigValue.silverfish_name_tag == null || ConfigValue.silverfish_name_tag.isEmpty())
return;

final String teamName = team.getDisplayName();
final String color = team.getChatColor().toString();
final int amountOfTags = ConfigValue.silverfish_name_tag.size();

final long time = ConfigValue.silverfish_life_duration / amountOfTags;

silverfish.setCustomNameVisible(true);
Expand Down

0 comments on commit 5476ac6

Please sign in to comment.