Created
March 30, 2014 16:13
-
-
Save Mitch528/9875146 to your computer and use it in GitHub Desktop.
SharpStar Example Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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