hook up plugin events properly

This commit is contained in:
AAGaming
2024-06-13 17:47:53 -04:00
parent 822b6bcaaa
commit 54aecee64e
7 changed files with 10 additions and 12 deletions

View File

@@ -166,7 +166,7 @@ class SandboxedPlugin:
d: SocketResponseDict = {"type": SocketMessageType.RESPONSE, "res": None, "success": True, "id": data["id"]}
try:
if data["legacy"]:
if data.get("legacy"):
if self.api_version > 0:
raise Exception("Legacy methods may not be used on api_version > 0")
# Legacy kwargs