Skip to content

Commit

Permalink
Make flags show up also if no pronouns are present
Browse files Browse the repository at this point in the history
  • Loading branch information
kivattt committed Jan 26, 2024
1 parent 776d2cf commit 5eea66f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {

apply plugin: 'foxloader.dev'

version '1.7.0'
version '1.7.1'

foxloader {
// forceReload = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class KivaServerUtils extends Mod {
public static LinkedHashMap<String, String> nameColorChoicesNames = new LinkedHashMap<>();
public static LinkedHashMap<String, String> flagColorChoicesNames = new LinkedHashMap<>();
public static LinkedHashMap<String, String> pronounColorChoicesNames = new LinkedHashMap<>();
public static String version = "1.7.0";
public static String version = "1.7.1";
public static String KSUBroadcastPrefix = ChatColors.DARK_GRAY + "[" + ChatColors.GRAY + "KSU" + ChatColors.DARK_GRAY + "] " + ChatColors.RESET;

public static String handleWindowClickLatestPlayerUsername;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void handleMutedPlayers(Packet3Chat packet3Chat, CallbackInfo ci){
if (pronouns != null) {
return ChatColors.RESET + "[" + pronounColor + pronouns + ChatColors.RESET + "] " + flag + ChatColors.RESET + "<" + nameColor + playerNameUnlessNickname + ChatColors.RESET + "> " + packet3Chat.message.trim();
} else {
return ChatColors.RESET + "<" + nameColor + playerNameUnlessNickname + ChatColors.RESET + "> " + packet3Chat.message.trim();
return ChatColors.RESET + flag + ChatColors.RESET + "<" + nameColor + playerNameUnlessNickname + ChatColors.RESET + "> " + packet3Chat.message.trim();
}
}

Expand Down

0 comments on commit 5eea66f

Please sign in to comment.