[SM]Disable exceptions in server console
-
- Junior Member
- Posts: 20
- Joined: Tue Mar 03, 2020 6:39 am
Re: [SM]Disable exceptions in server console
Cool stuff! :)
Instead of using ClientCommand and implementing your own admin system I would recommend using TypedClientCommand.
Server owners can then grant permissions to run this command by using the following in the server console:
See also:
http://wiki.sourcepython.com/general/config-auth.html
Instead of using ClientCommand and implementing your own admin system I would recommend using TypedClientCommand.
Syntax: Select all
from commands.typed import TypedClientCommand
@TypedClientCommand('exceptions', 'my_plugin.exceptions')
def ShowExceptionStreak(info):
SayText2('\x04 Counting \x02' + str(ExceptionStreak) + '\x04 exceptions').send(info.index)
Server owners can then grant permissions to run this command by using the following in the server console:
Code: Select all
sp auth permission player add <player> my_plugin.exceptions
See also:
http://wiki.sourcepython.com/general/config-auth.html
Who is online
Users browsing this forum: No registered users and 63 guests