Browse Source

Update timings.py

master
DrBot7 4 years ago
committed by GitHub
parent
commit
34086ec2cf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      cogs/timings.py

8
cogs/timings.py

@ -59,7 +59,7 @@ class Timings(commands.Cog):
# server.properties # server.properties
view_distance = None view_distance = None
network_compression_threshold = None network_compression_threshold = None
if "Purpur" in version:
if "Purpur" in version or "Yatopia" in version:
view_distance = int(r["timingsMaster"]["config"]["server.properties"]["view-distance"]) view_distance = int(r["timingsMaster"]["config"]["server.properties"]["view-distance"])
network_compression_threshold = int( network_compression_threshold = int(
r["timingsMaster"]["config"]["server.properties"]["network-compression-threshold"]) r["timingsMaster"]["config"]["server.properties"]["network-compression-threshold"])
@ -71,8 +71,10 @@ class Timings(commands.Cog):
ambient_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["ambient"]) ambient_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["ambient"])
animals_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["animals"]) animals_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["animals"])
water_animals_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["water-animals"]) water_animals_spawn_limit = int(r["timingsMaster"]["config"]["bukkit"]["spawn-limits"]["water-animals"])
chunk_gc_period = int(r["timingsMaster"]["config"]["bukkit"]["chunk-gc"]["period-in-ticks"])
try:
chunk_gc_period = int(r["timingsMaster"]["config"]["bukkit"]["chunk-gc"]["period-in-ticks"])
except TypeError:
chunk_gc_period = 0
# spigot.yml # spigot.yml
bungeecord = r["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"] bungeecord = r["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"]
save_user_cache_on_stop_only = r["timingsMaster"]["config"]["spigot"]["settings"][ save_user_cache_on_stop_only = r["timingsMaster"]["config"]["spigot"]["settings"][

Loading…
Cancel
Save