summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRitabrata Das <[email protected]>2025-02-19 22:42:23 +0530
committerGitHub <[email protected]>2025-02-19 22:42:23 +0530
commit86cc54fd0cf49ce05191620798b566fa9c49ff94 (patch)
tree0a5b09502d5f63c21e8b05921b4769c3b6a335cf /lib
parent19a97cd1dcee60ab1b6a5871902e9f2590a8f73f (diff)
parent2546a64a649464868bd1332d4308018c9beffb3b (diff)
Merge pull request #7 from the-indian-dev/dev
Add mid air refueling
Diffstat (limited to 'lib')
-rw-r--r--lib/plugin_manager.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/plugin_manager.py b/lib/plugin_manager.py
index ae4cf0b..07e28e6 100644
--- a/lib/plugin_manager.py
+++ b/lib/plugin_manager.py
@@ -62,8 +62,11 @@ class PluginManager:
if hook_name in self.hooks:
for callback in self.hooks[hook_name]:
keep = callback(data, *args, **kwargs)
- if keep == False:
- keep_orignal = False
+ if type(keep) == bool:
+ if keep == False:
+ keep_orignal = False
+ else:
+ warning(f"Return value of {callback} is not a boolean")
return keep_orignal
def trigger_command(self, command:str, player, full_message:str, message_to_client:list, message_to_server:list):