summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRitabrata Das <[email protected]>2025-03-03 10:44:02 +0530
committerRitabrata Das <[email protected]>2025-03-03 10:44:02 +0530
commitaa558bb5e8542ef8ba5e723d78cc7db0899d35c6 (patch)
treef351122240ea2ab9a3e5dcd313e65ca0dee484ad
parentcf54eb94ee44034bf4aa8d0bf65af9ea77cb3864 (diff)
add plugin to ensure planes die on ground
-rw-r--r--plugins/crash_on_ground.py15
1 files changed, 15 insertions, 0 deletions
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