I have, say, test.py.
Skipping imports, the code is:
Syntax: Select all
@TypedSayCommand('!myteam')
def cmd_on_myteam(command_info):
print('Showing team')
player = Player(command_info.index)
SayText2(f"Team is {player.team}").send(player.index)
I launch test.py through autoexec.cfg, where I wrote:
Code: Select all
sp plugin load test
Works fine unless I enter server console and execute following commands:
Code: Select all
sp plugin unload test
sp plugin load test
Every other line of code works fine after manipulations above, while there is no reaction on typing "!myteam" in chat.
Is this a bug or a feature?