I saw you changed this, but I fixed it last night and forgot to commit it.

This commit is contained in:
Steven Lawson 2012-09-17 18:35:22 -04:00
parent d23c99f3c5
commit 1d2a17c13d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;