Hiding/silent say trigger
Posted: Fri Oct 03, 2014 6:21 am
by 8guawong
i was looking at
http://wiki.sourcepython.com/index.php/commands
but i don't think its like
es.regsaycmd where the trigger is hidden/silent?
so is there anyway to make the trigger silent???
Posted: Fri Oct 03, 2014 6:34 am
by L'In20Cible
You are right, it is not like ES since we give you the choice directly in your callback.
Syntax: Select all
from commands import CommandReturn
from commands.say import SayCommand
# Usage:
# @SayCommand(<(str or list) names>, [str level], [str permission], [str flag], [callable fail_callback])
# A single command name
@SayCommand('say_test')
def test_say_command(playerinfo, teamonly, command):
return CommandReturn.BLOCK
Posted: Fri Oct 03, 2014 10:56 am
by 8guawong
L'In20Cible wrote:You are right, it is not like ES since we give you the choice directly in your callback.
Syntax: Select all
from commands import CommandReturn
from commands.say import SayCommand
# Usage:
# @SayCommand(<(str or list) names>, [str level], [str permission], [str flag], [callable fail_callback])
# A single command name
@SayCommand('say_test')
def test_say_command(playerinfo, teamonly, command):
return CommandReturn.BLOCK
awesome thanks!