[SM]Disable exceptions in server console

Release your plugins here!
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
Project Leader
Posts: 2088
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:

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 3 guests