Skip to content
Browse files

Adjust server ranking

specificially, penalize servers that support both v4 and v5
Reasoning: We, as a project, have no interest in promoting servers
that intentionally restrict themselves to the feature set of an old,
potentially buggy version.
  • Loading branch information
sfan5 committed Mar 15, 2021
1 parent e37149a commit 9f144f3e3c40a52ee423466f19f8eff37f859111
Showing with 6 additions and 2 deletions.
  1. +6 −2
@@ -201,8 +201,8 @@ def serverUp(info):
"mods": (False, "list", "str"),

"version": (True, "str"),
"proto_min": (False, "int"),
"proto_max": (False, "int"),
"proto_min": (True, "int"),
"proto_max": (True, "int"),

"gameid": (True, "str"),
"mapgen": (False, "str"),
@@ -371,6 +371,10 @@ def server_points(server):
if uptime < HOUR_SECS:
points -= ((HOUR_SECS - uptime) / HOUR_SECS) * 8

# reduction to 40% for servers that support both legacy (v4) and v5 clients
if server["proto_min"] <= 32 and server["proto_max"] > 36:
points *= 0.4

return points

with self.lock:

1 comment on commit 9f144f3


This comment has been minimized.

Copy link

@MisterE123 MisterE123 commented on 9f144f3 Mar 15, 2021

EDIT: hmm, looking closer, I see that multicraft servers are still high on the list, just not first. Seems reasonable.

Please sign in to comment.