Browse Source

Timings - Versions

master
DrBot7 4 years ago
parent
commit
07ead28591
  1. 6
      cogs/timings.py
  2. 4
      cogs/timings_check.yml

6
cogs/timings.py

@ -62,11 +62,11 @@ class Timings(commands.Cog):
unchecked = 0 unchecked = 0
try: try:
try: try:
version = request["timingsMaster"]["version"].lower()
version = request["timingsMaster"]["version"]
if "version" in TIMINGS_CHECK: if "version" in TIMINGS_CHECK:
if TIMINGS_CHECK["version"] not in version:
if TIMINGS_CHECK["version"] not in version and "1.16.5" not in version:
embed_var.add_field(name="❌ Legacy Build", embed_var.add_field(name="❌ Legacy Build",
value="Update to " + TIMINGS_CHECK["version"])
value="You are using " + version + ". Update to " + TIMINGS_CHECK["version"])
if "servers" in TIMINGS_CHECK: if "servers" in TIMINGS_CHECK:
for server in TIMINGS_CHECK["servers"]: for server in TIMINGS_CHECK["servers"]:
if server["name"] in version: if server["name"] in version:

4
cogs/timings_check.yml

@ -7,12 +7,12 @@
# wake_up_inactive_monsters_every = int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["monsters-every"]) # wake_up_inactive_monsters_every = int(spigot["world-settings"]["default"]["entity-activation-range"]["wake-up-inactive"]["monsters-every"])
version: "1.16.4" version: "1.16.4"
servers: servers:
- name: "yatopia"
- name: "Yatopia"
prefix: "❌" prefix: "❌"
value: |- value: |-
Yatopia is prone to bugs. Yatopia is prone to bugs.
Consider using [Purpur](https://ci.pl3x.net/job/Purpur/). Consider using [Purpur](https://ci.pl3x.net/job/Purpur/).
- name: "paper"
- name: "Paper"
prefix: "||❌" prefix: "||❌"
suffix: "||" suffix: "||"
value: |- value: |-

Loading…
Cancel
Save