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???
Hiding/silent say trigger
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
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
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!
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 123 guests