This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner-utils/wrapper_command.py
Dico200 0172cf2feb Revert "wrapper_command WIP"
This reverts commit 522a7a99a1.
2015-11-25 15:24:34 +01:00

11 lines
384 B
Python

from wrapper_player import *
def command(command = "help"):
def decorator(wrapped):
@hook.command(command)
def wrapper(sender, command, label, args):
try:
return wrapped(sender = py_players[sender], command = command, label = label, args = args)
except:
print(print_traceback())
return decorator