Browse Source
Timings - improve offline mode detection
pull/4/head
DrBot7
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
5 deletions
-
cogs/timings.py
|
|
@ -72,8 +72,10 @@ class Timings(commands.Cog): |
|
|
|
try: |
|
|
|
online_mode = r["timingsMaster"]["onlinemode"] |
|
|
|
bungeecord = r["timingsMaster"]["config"]["spigot"]["settings"]["bungeecord"] |
|
|
|
if not online_mode and bungeecord == "false": |
|
|
|
if not online_mode and bungeecord == "false": |
|
|
|
velocity_online_mode = r["timingsMaster"]["config"]["paper"]["settings"]["velocity-support"]["online-mode"] |
|
|
|
velocity_enabled = r["timingsMaster"]["config"]["paper"]["settings"]["velocity-support"]["enabled"] |
|
|
|
|
|
|
|
if not online_mode and bungeecord == "false" and (velocity_online_mode == "false" or velocity_enabled == "false"): |
|
|
|
embed_var.add_field(name="❌ online-mode", |
|
|
|
value="Enable this in server.properties for security.", |
|
|
|
inline=True) |
|
|
|