# Disabled by default: remove # from the filename to enable this script. # Remote-admin lookup command with safe zero/multiple-match handling. # Targets can be names, player IDs, user IDs, roles, teams, rooms or zones. !-- CustomCommand whois -- description "Shows basic information about one online player" -- arguments target @matches = ParsePlayers $target $count = AmountOf @matches if $count is 0 Reply "No online player matched '{$target}'." stop end if $count > 1 Reply "The target is ambiguous ({$count} matches): {Show @matches name}" stop end Reply "{@matches -> name} | Player ID: {@matches -> playerId} | Role: {@matches -> role} | Team: {@matches -> team} | HP: {Round {@matches -> health}}/{Round {@matches -> maxHealth}} | Zone: {@matches -> roomRef -> zone}"