From 1d2a17c13d584183207447eb1a8180d8d395a6ff Mon Sep 17 00:00:00 2001 From: Steven Lawson Date: Mon, 17 Sep 2012 18:35:22 -0400 Subject: [PATCH] I saw you changed this, but I fixed it last night and forgot to commit it. --- src/me/StevenLawson/TotalFreedomMod/Commands/Command_qdeop.java | 2 +- src/me/StevenLawson/TotalFreedomMod/Commands/Command_qop.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_qdeop.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_qdeop.java index b5ad769..bd4d650 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_qdeop.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_qdeop.java @@ -28,7 +28,7 @@ public class Command_qdeop extends TFM_Command for (Player p : server.getOnlinePlayers()) { - if (p.getName().toLowerCase().indexOf(target_name) > 0 || p.getDisplayName().toLowerCase().indexOf(target_name) > 0) + if (p.getName().toLowerCase().indexOf(target_name) != -1 || p.getDisplayName().toLowerCase().indexOf(target_name) != -1) { matched_player = true; diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_qop.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_qop.java index 57d09a1..0e3bb84 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_qop.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_qop.java @@ -28,7 +28,7 @@ public class Command_qop extends TFM_Command for (Player p : server.getOnlinePlayers()) { - if (p.getName().toLowerCase().indexOf(target_name) > 0 || p.getDisplayName().toLowerCase().indexOf(target_name) > 0) + if (p.getName().toLowerCase().indexOf(target_name) != -1 || p.getDisplayName().toLowerCase().indexOf(target_name) != -1) { matched_player = true;