Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 381 Bytes
from opencore import *
def GameEvent(cd):
try:
if cd.event == EVENT_START:
RegisterPlugin(OPENCORE_VERSION, 'hello', 'cycad', '1.0', '', '', 'A Python plugin that greets players in pub chat', 0, 0)
elif cd.event == EVENT_ENTER:
PubMessage("Hello %s" % cd.p1.name)
elif cd.event == EVENT_STOP:
pass
except Exception as e:
print 'Python Exception: %s' % str(e)