Added aliases and proper command description

This commit is contained in:
BuildTools
2016-02-15 17:33:14 +01:00
parent 9160c85d09
commit 412ed59225

View File

@@ -5,7 +5,11 @@ from java.util.UUID import fromString as juuid
toggle_dict = {}
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):
if not sender.hasPermission(permission) or not is_player(sender):
noperm(sender)