Hiding/silent say trigger

Please post any questions about developing your plugin here. Please use the search function before posting!
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

Hiding/silent say trigger

Postby 8guawong » Fri Oct 03, 2014 6:21 am

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???
User avatar
L'In20Cible
Project Leader
Posts: 1536
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Fri Oct 03, 2014 6:34 am

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
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

Postby 8guawong » Fri Oct 03, 2014 10:56 am

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 129 guests