diff options
| -rw-r--r-- | plugins/crash_on_ground.py | 15 |
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 |
