Browse Source

Timings - Move projectile-load-save-per-chunk-limit to purpur

master
DrBot7 4 years ago
parent
commit
d47e698ece
  1. 10
      cogs/timings_check.yml
  2. 2
      cogs/timings_public.py

10
cogs/timings_check.yml

@ -425,11 +425,6 @@ config:
- paper["world-settings"]["default"]["enable-treasure-maps"] == "true" - paper["world-settings"]["default"]["enable-treasure-maps"] == "true"
prefix: "❌" prefix: "❌"
value: "Disable this in [paper.yml](http://bit.ly/paperconf). Why? Generating treasure maps is extremely expensive and can hang a server if the structure it's trying to locate is really far away." value: "Disable this in [paper.yml](http://bit.ly/paperconf). Why? Generating treasure maps is extremely expensive and can hang a server if the structure it's trying to locate is really far away."
projectile-load-save-per-chunk-limit:
- expressions:
- int(paper["world-settings"]["default"]["projectile-load-save-per-chunk-limit"]) == -1
prefix: "❌"
value: "Set a value in [paper.yml](http://bit.ly/paperconf). Recommended: 8."
purpur: purpur:
settings.use-alternate-keepalive: settings.use-alternate-keepalive:
- expressions: - expressions:
@ -482,3 +477,8 @@ config:
- purpur["world-settings"]["default"]["gameplay-mechanics"]["player"]["teleport-if-outside-border"] == "false" - purpur["world-settings"]["default"]["gameplay-mechanics"]["player"]["teleport-if-outside-border"] == "false"
prefix: "❌" prefix: "❌"
value: "Enable this in [purpur.yml](http://bit.ly/purpurc)." value: "Enable this in [purpur.yml](http://bit.ly/purpurc)."
projectile-load-save-per-chunk-limit:
- expressions:
- int(paper["world-settings"]["default"]["projectile-load-save-per-chunk-limit"]) == -1
prefix: "❌"
value: "Set a value in paper.yml. Recommended: 8."

2
cogs/timings_public.py

@ -25,7 +25,7 @@ class Timings(commands.Cog):
words = message.content.replace("\n", " ").split(" ") words = message.content.replace("\n", " ").split(" ")
timings_url = "" timings_url = ""
embed_var = discord.Embed(title=self.TIMINGS_TITLE) embed_var = discord.Embed(title=self.TIMINGS_TITLE)
embed_var.set_footer(text="Requested by " + message.author.name, icon_url=message.author.avatar_url)
embed_var.set_footer(text="Requested by " + message.author.name + message.author.discriminator, icon_url=message.author.avatar_url)
for word in words: for word in words:
if word.startswith("https://timings.") and "/d=" in word: if word.startswith("https://timings.") and "/d=" in word:

Loading…
Cancel
Save