Skip to content

Commit

Permalink
fix toggle case
Browse files Browse the repository at this point in the history
  • Loading branch information
hank9999 committed May 5, 2020
1 parent 6d8c10a commit 95bdb67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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>com.github.hank9999</groupId>
<artifactId>KeywordBlock</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
<packaging>jar</packaging>

<name>KeywordBlock</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void onCommands(PlayerCommandPreprocessEvent e) {
String username = player.getName();
String pcommand = e.getMessage();
for (String lcommand : KeywordBlock.plugin.getConfig().getStringList("detect_other.command")) {
if (pcommand.indexOf(lcommand) == 0) {
if (pcommand.toLowerCase().indexOf(lcommand.toLowerCase()) == 0) {
String m1 = pcommand.replace(lcommand, "");
for (Player p : KeywordBlock.plugin.getServer().getOnlinePlayers()) {
m1 = m1.replace(p.getName(), "");
Expand Down

0 comments on commit 95bdb67

Please sign in to comment.