Skip to content

Commit

Permalink
update plugin example
Browse files Browse the repository at this point in the history
  • Loading branch information
s95rob committed Oct 28, 2023
1 parent 1b2d078 commit baaead6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ Source2Py loads Python plugins by instantiating the class within the module that
```python
import Source2Py

def SamplePlugin:
class SamplePlugin:
# Called when Source2Py loads the plugin
def Load(self):
def OnPluginLoad(self):
Source2Py.Print("Hello world!") # Prints to console

# Called when Source2Py unloads the plugin
def Unload(self)
def OnPluginUnload(self)
Source2Py.Print("Goodbye world!")
```

0 comments on commit baaead6

Please sign in to comment.