added wrappers, temp disabled all modules

This commit is contained in:
BuildTools
2015-11-23 22:17:40 +01:00
parent ab42a0cb65
commit 70b4db5318
9 changed files with 217 additions and 115 deletions

11
wrapper_command.py Normal file
View File

@@ -0,0 +1,11 @@
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