Skip to content

Commit

Permalink
4.3.1 tiny fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CubBossa committed Jan 15, 2024
1 parent 02e1ec9 commit fde879b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions TinyTranslations-bukkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.cubbossa</groupId>
<artifactId>TinyTranslations</artifactId>
<version>4.3.0</version>
<version>4.3.1</version>
</parent>

<artifactId>TinyTranslations-bukkit</artifactId>
Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>de.cubbossa</groupId>
<artifactId>TinyTranslations-common</artifactId>
<version>4.3.0</version>
<version>4.3.1</version>
</dependency>

<!--This adds the Spigot API artifact to the build -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public static Locale getLocale(CommandSender sender, Locale fallback) {
}

public static void sendActionBar(CommandSender sender, ComponentLike message) {
if (message instanceof Message msg && msg.getTranslator() != null) {
message = msg.getTranslator().process(msg, getLocale(sender));
}
audiences.sender(sender).sendActionBar(message);
}

Expand All @@ -87,6 +90,9 @@ public static void sendActionBarIfNotEmpty(CommandSender sender, ComponentLike m
}

public static void sendMessage(CommandSender sender, ComponentLike message) {
if (message instanceof Message msg && msg.getTranslator() != null) {
message = msg.getTranslator().process(msg, getLocale(sender));
}
audiences.sender(sender).sendMessage(message);
}

Expand Down
2 changes: 1 addition & 1 deletion TinyTranslations-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>de.cubbossa</groupId>
<artifactId>TinyTranslations</artifactId>
<version>4.3.0</version>
<version>4.3.1</version>
</parent>

<artifactId>TinyTranslations-common</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ url = <blue><u><click:open_url:"{slot}"><hover:show_text:"Click to open url"><sh
cmd_syntax = <brighter><click:suggest_command:'{slot}'><hover:show_text:'Suggest command'><lower>{slot}</lower></hover></click></brighter>
# Gamemode for 1 player
#/gamemode ‹mode› ‹player›
arg = ‹slot}›
arg = {slot}›
# Gamemode for 0 to 1 player
#/gamemode ‹mode› [‹player›]
arg_opt = [<arg>{slot}</arg>]
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.cubbossa</groupId>
<artifactId>TinyTranslations</artifactId>
<version>4.3.0</version>
<version>4.3.1</version>
<packaging>pom</packaging>

<name>TinyTranslations</name>
Expand Down

0 comments on commit fde879b

Please sign in to comment.