Minor tweaks #37

Merged
Pepich merged 3 commits from tweaks into dev 2016-02-15 16:48:22 +00:00
Showing only changes of commit 412ed59225 - Show all commits

View File

@ -5,7 +5,11 @@ from java.util.UUID import fromString as juuid
toggle_dict = {} toggle_dict = {}
permission = "utils.pmtoggle" permission = "utils.pmtoggle"
@hook.command("tm") @hook.command("tm",
aliases = ["tmsg", "mt", "msgt"],
usage = "/<command> [player]",
description = "Toggle automatic sending of messages"
)
def on_toggle_message_command(sender, command, label, args): def on_toggle_message_command(sender, command, label, args):
if not sender.hasPermission(permission) or not is_player(sender): if not sender.hasPermission(permission) or not is_player(sender):
noperm(sender) noperm(sender)