Skip to content

Commit

Permalink
Improve Geyser/Floodgate compatibility. Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaMug committed Sep 24, 2022
1 parent f1b97c6 commit 353fd31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>me.pikamug.localelib</groupId>
<artifactId>LocaleLib</artifactId>
<version>2.8</version>
<version>3.0</version>

<name>LocaleLib</name>
<url>https://github.com/PikaMug/LocaleLib/</url>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/me/pikamug/localelib/LocaleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public boolean sendMessage(final Player player, final String message, final Mate
for (final String lk : lvlKeys) {
msg = msg.replaceFirst("<level>", translate(msg, lk, "<level>"));
}
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tellraw " + player.getName() + " [\"" + msg + "\"]");
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tellraw \"" + player.getName() + "\" [\"" + msg + "\"]");
return true;
}

Expand Down Expand Up @@ -193,7 +193,7 @@ public boolean sendMessage(final Player player, final String message, final Map<
msg = message.replaceFirst("<level>", translate(message, lk, "<level>"));
}
}
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tellraw " + player.getName() + " [\"" + msg + "\"]");
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tellraw \"" + player.getName() + "\" [\"" + msg + "\"]");
return true;
}

Expand All @@ -215,7 +215,7 @@ public boolean sendMessage(final Player player, final String message, final Enti
}
final String key = queryEntityType(type, extra);
final String msg = message.replace("<mob>", translate(message, key, "<mob>"));
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tellraw " + player.getName() + " [\"" + msg + "\"]");
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tellraw \"" + player.getName() + "\" [\"" + msg + "\"]");
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: LocaleLib
main: me.pikamug.localelib.LocaleLib
version: 2.8
version: 3.0
api-version: 1.13
description: Show translated names of items, entities & more in client's language
website: https://github.com/PikaMug/LocaleLib
Expand Down

0 comments on commit 353fd31

Please sign in to comment.