-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathInfo.lua
More file actions
95 lines (78 loc) · 2.12 KB
/
Info.lua
File metadata and controls
95 lines (78 loc) · 2.12 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
-- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "Login",
Version = "3",
Date = "2015-12-29", -- yyyy-mm-dd
SourceLocation = "https://github.com/NiLSPACE/Login",
Description = [[
Login is a security plugin for MCServer.
It requires a player to log in before they can do any action on the server.
This way people can't login on the account of an admin or moderator.
This would be particuarly useful for servers that don't use the traditional Minecraft authentication.]],
Commands =
{
['/login'] =
{
Permission = "login.login",
HelpString = "Login into the server",
Handler = HandleLoginCommand,
},
['/register'] =
{
Permission = "login.register",
HelpString = "Register an account",
Handler = HandleRegisterCommand,
},
['/changepass'] =
{
Alias = {"/updatepass"},
Permission = "login.changepass",
HelpString = "Change your password",
Handler = HandleChangePassCommand,
},
['/removeacc'] =
{
Permission = "login.removeacc",
HelpString = "Remove an account from the database",
Handler = HandleRemoveAccountCommand,
},
},
Permissions =
{
["login.login"] =
{
Description = "Allows a player to log in",
RecommendedGroups = "Default",
},
["login.register"] =
{
Description = "Allows a player to create an account for himself.",
RecommendedGroups = "Default",
},
["login.changepass"] =
{
Description = "Allows a player to change his password.",
RecommendedGroups = "Default",
},
["login.removeacc"] =
{
Description = "Allows a player to remove an account",
RecommendedGroups = "Admins",
}
},
AdditionalInfo =
{
{
Title = "Configuration",
Contents = [[
If a configuration file doesn't exist yet Login will create one with the default settings.
Currently there are 2 things you can configurate
{%list}
{%li} Storage: This can be "sqlite" (default). If choosen for sqlite the plugin will save everything in an sqlite database.
{%li} LoginMessageTime: This is the time in ticks (50 msec) between an "You have to login" message.
{%/list}]],
},
},
}