[SM]Disable exceptions in server console

Release your plugins here!
Tetragromaton
Junior Member
Posts: 20
Joined: Tue Mar 03, 2020 6:39 am

[SM]Disable exceptions in server console

Postby Tetragromaton » Thu Mar 05, 2020 11:08 am

User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: [SM]Disable exceptions in server console

Postby Ayuto » Thu Mar 05, 2020 5:15 pm

Cool stuff! :)

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

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 30 guests