Skip to content

Instantly share code, notes, and snippets.

@Mitch528
Created March 30, 2014 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mitch528/9875146 to your computer and use it in GitHub Desktop.
Save Mitch528/9875146 to your computer and use it in GitHub Desktop.
SharpStar Example Plugin
from SharpStar.Lib.Plugins import PyPlugin
class testplugin(PyPlugin):
def on_load(self):
self.subscribe_to_event('afterConnectionResponse', 'after_conn_response')
def on_unload(self):
pass
def after_conn_response(self, packet, client):
client.SendChatMessage('Server', 'Welcome ' + client.Server.Player.Name + '!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment