summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/modules/loginsecurity/LoginSecurity.cmd
blob: 952b3ed75d4107a5550c495fd08bbb19766457dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
command register {
	perm utils.loginsecurity;
	
	[string:password] {
		run register password;
		help Protects your account with a password;
		type player;
	}
}

command login {
	perm utils.loginsecurity;
	
	[string:password] {
		run login password;
		help Logs you in;
		type player;
	}
}

command cgpass {
	perm utils.loginsecurity;
	
	[string:oldPassword] [string:newPassword] {
		run cgpass oldPassword newPassword;
		help Changes your password to the specified one;
		type player;
	}
}

command rmpass {
	perm utils.loginsecurity;
	
	[string:oldPassword] {
		run rmpass oldPassword;
		help Removes the password of your account;
		type player;
	}
}

command rmotherpass {
	perm utils.loginsecurity.admin;
	
	[string:playerName] {
		run rmotherpass playerName;
		help removes the password of another player;
		perm utils.loginsecurity.admin;
	}
}