- We changed the order of the arguments passed to the callbacks.
- We are now passing an index instead of a PlayerInfo object to the callback.
- We removed the first argument of the command object in say command callbacks. It was always "say" or "say_team".
- Say command arguments are now properly splitted.
Syntax: Select all
from commands.say import SayCommand
@SayCommand('test')
def on_test(command, index, team_only):
pass
Syntax: Select all
from commands.client import ClientCommand
@ClientCommand('test')
def on_test(command, index):
pass
Syntax: Select all
from commands.server import ServerCommand
@ServerCommand('test')
def on_test(command):
pass
The changes will be available in [url=build.affecta.net/job/Source.Python/49/]build #49[/url].