Skip to content

Commit

Permalink
Update SenderFinder.java
Browse files Browse the repository at this point in the history
  • Loading branch information
LOOHP committed Apr 17, 2020
1 parent fd262a7 commit 2cd51f7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/com/loohp/interactivechat/Modules/SenderFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ public static Optional<Player> getSender(BaseComponent basecomponent, String mes
Player currentplayer = null;
int currentpos = 99999;
for (Entry<String, Player> entry : names.entrySet()) {
Bukkit.getConsoleSender().sendMessage(entry.getKey());
int pos = chat.toLowerCase().indexOf(entry.getKey().toLowerCase());
Bukkit.getConsoleSender().sendMessage(chat);
Bukkit.getConsoleSender().sendMessage(pos + "");
if (pos >= 0 && pos < currentpos) {
currentpos = pos;
currentplayer = entry.getValue();
Expand Down

0 comments on commit 2cd51f7

Please sign in to comment.