-
Notifications
You must be signed in to change notification settings - Fork 116
Modding Guide Episode 2: Creating a Plugin
Eric Froemling edited this page Dec 2, 2022
·
13 revisions
In this tutorial we'll get started with workspaces and create our first plugin.
First, import the ba package
import ba
Secondly, we create the class MyPlugin with the base class ba.Plugin. Don't forget about # ba_meta export plugin
# ba_meta export plugin
class MyPlugin(ba.Plugin):
def on_app_running(self):
ba.screenmessage("Hello world!This is my first plugin")
In this case, we override the method on_app_running. It's called when Bombsquad starts.
import ba
# ba_meta export plugin
class MyPlugin(ba.Plugin):
def on_app_running(self):
ba.screenmessage("Hello world!This is my first plugin")
That's it! You have created your first BombSquad plugin.
ballistica.net • discord • blog • support