Skip to content

Commit

Permalink
Fixes locale strings to corresponding ones in a yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wellnesscookie committed Jan 2, 2020
1 parent 570ad69 commit 4822b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/world/bentobox/chat/listeners/ChatListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private void islandChat(Island i, Player player, String message) {
Bukkit.getOnlinePlayers().stream()
.filter(p -> spies.contains(p.getUniqueId()))
.map(User::getInstance)
.forEach(a -> a.sendMessage("chat.team-chat.spy-syntax", TextVariables.NAME, player.getName(), "[message]", message));
.forEach(a -> a.sendMessage("chat.island-chat.spy.syntax", TextVariables.NAME, player.getName(), "[message]", message));
});
}

Expand All @@ -104,7 +104,7 @@ private void teamChat(final Player player, String message) {
Bukkit.getOnlinePlayers().stream()
.filter(p -> islandSpies.contains(p.getUniqueId()))
.map(User::getInstance)
.forEach(u -> u.sendMessage("chat.team-chat.spy-syntax", TextVariables.NAME, player.getName(), "[message]", message));
.forEach(u -> u.sendMessage("chat.team-chat.spy.syntax", TextVariables.NAME, player.getName(), "[message]", message));
});
}

Expand Down

0 comments on commit 4822b67

Please sign in to comment.