Skip to content

Commit 5bc27e8

Browse files
Fix /zedit [zone] -[your own name] confusingly saying 'no players found'
1 parent d44f576 commit 5bc27e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fCraft/Commands/ZoneCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ static void ZoneEditHandler( Player player, CommandReader cmd ) {
418418
}
419419

420420
} else if( nextToken.StartsWith( "-" ) ) {
421-
PlayerInfo info = PlayerDB.FindPlayerInfoOrPrintMatches(player, nextToken.Substring(1), SearchOptions.Default);
421+
PlayerInfo info = PlayerDB.FindPlayerInfoOrPrintMatches( player, nextToken.Substring( 1 ), SearchOptions.IncludeSelf );
422422
if( info == null ) return;
423423

424424
if (!player.Info.Rank.AllowSecurityCircumvention && player.Info == info)

0 commit comments

Comments
 (0)