Archived
Removed usage from simple command
This commit is contained in:
@@ -80,14 +80,12 @@ def register_command(sender, command, label, args):
|
|||||||
return "&cPassword set. Use /login <password> upon join."
|
return "&cPassword set. Use /login <password> upon join."
|
||||||
|
|
||||||
@simplecommand("rmpass",
|
@simplecommand("rmpass",
|
||||||
usage = "<password>",
|
|
||||||
description = "Removes your password if the password matches",
|
description = "Removes your password if the password matches",
|
||||||
senderLimit = 0,
|
senderLimit = 0,
|
||||||
helpNoargs = True)
|
helpNoargs = True)
|
||||||
def rmpass_command(sender, command, label, args):
|
def rmpass_command(sender, command, label, args):
|
||||||
if not is_registered(uid(sender)):
|
if not is_registered(uid(sender)):
|
||||||
return "&cYou are not registered!"
|
return "&cYou are not registered!"
|
||||||
password = " ".join(args)
|
|
||||||
if not sender.getName() in logging_in:
|
if not sender.getName() in logging_in:
|
||||||
delete_pass(uid(sender))
|
delete_pass(uid(sender))
|
||||||
return "&aPassword removed successfully. You will not be prompted anymore."
|
return "&aPassword removed successfully. You will not be prompted anymore."
|
||||||
|
|||||||
Reference in New Issue
Block a user