mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 07:24:57 +00:00
I saw you changed this, but I fixed it last night and forgot to commit it.
This commit is contained in:
parent
d23c99f3c5
commit
1d2a17c13d
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue