Last active
November 17, 2023 16:55
-
-
Save squigglesdev/71dc83559b30bc21f5a703ab27e1cdfb to your computer and use it in GitHub Desktop.
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
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