diff options
| author | Skipper <[email protected]> | 2025-02-22 07:12:19 +0000 |
|---|---|---|
| committer | Skipper <[email protected]> | 2025-02-22 07:12:19 +0000 |
| commit | 9708d6ecec391307b87507e034665e02d6643c08 (patch) | |
| tree | f2a14e9b5ac99e3577d659eb136a9453cc21a336 /lib | |
| parent | 8dc67f402d32dc4239a05d3e278f3ed8251db826 (diff) | |
Typo in plugin manager
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/plugin_manager.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugin_manager.py b/lib/plugin_manager.py index 07e28e6..52fb1f7 100644 --- a/lib/plugin_manager.py +++ b/lib/plugin_manager.py @@ -58,16 +58,16 @@ class PluginManager: If a callback returns False, then the original data is set to None and not forwarded to the destination. This is useful for modifying packets.""" - keep_orignal = True + keep_original = True if hook_name in self.hooks: for callback in self.hooks[hook_name]: keep = callback(data, *args, **kwargs) if type(keep) == bool: if keep == False: - keep_orignal = False + keep_original = False else: warning(f"Return value of {callback} is not a boolean") - return keep_orignal + return keep_original def trigger_command(self, command:str, player, full_message:str, message_to_client:list, message_to_server:list): """Triggers the command""" |
