From aa558bb5e8542ef8ba5e723d78cc7db0899d35c6 Mon Sep 17 00:00:00 2001 From: Ritabrata Das Date: Mon, 3 Mar 2025 10:44:02 +0530 Subject: add plugin to ensure planes die on ground --- plugins/crash_on_ground.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plugins/crash_on_ground.py diff --git a/plugins/crash_on_ground.py b/plugins/crash_on_ground.py new file mode 100644 index 0000000..935ace3 --- /dev/null +++ b/plugins/crash_on_ground.py @@ -0,0 +1,15 @@ +# This plugin renders the dead plane until crashes in ground +# Thus disabling mid air dispawning when dead + +ENABLED = True + +class Plugin: + def __init__(self): + self.plugin_manager = None + + def register(self, plugin_manager): + self.plugin_manager = plugin_manager + self.plugin_manager.register_hook('on_unjoin', self.on_death) + + def on_death(self, data, player, message_to_client, message_to_server): + return False -- cgit v1.2.3