Skip to content

Instantly share code, notes, and snippets.

@squigglesdev
Last active November 17, 2023 16:55
Show Gist options
  • Save squigglesdev/71dc83559b30bc21f5a703ab27e1cdfb to your computer and use it in GitHub Desktop.
Save squigglesdev/71dc83559b30bc21f5a703ab27e1cdfb to your computer and use it in GitHub Desktop.
class Template:
def onLoad(self, process):
process.log('Template plugin loaded!', 'Template')
self.templateCommand = process.registerCommand('templateCommand', 'Template')
def tick(self, process, tick):
process.log('Template plugin ticked!', 'Template')
def recieveCommand(self, process, command):
if command == self.templateCommand:
process.log('Recieved template command!', 'Template')
players = process.getPlayers()
for player in players:
process.sendCommand(f'say Hi {player}!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment