-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathInfo.lua
131 lines (127 loc) · 2.93 KB
/
Info.lua
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
g_PluginInfo =
{
Name = "Portal-v2",
Version = "3.0.1",
Date = "2015-11-09",
SourceLocation = "https://github.com/jonnyboy0719/Cuberite-Portal/",
Description = [[Create portals to other places on the world, or to other worlds!]],
Commands =
{
["/ptoggle"] =
{
Permission = "portal.create",
Handler = HandleToggleCommand,
HelpString = "Switches to volume selection mode",
ParameterCombinations = {
{
Params = "",
Help = "toggles the selection mode",
}
},
},
["/pcreate"] =
{
Permission = "portal.create",
Handler = HandleMakeWarpCommand,
HelpString = "Creates warp point with given name",
ParameterCombinations = {
{
Params = "<portalName>",
Help = "portal called <portalName> gets created if it doesn't exist",
}
},
},
["/pconnect"] =
{
Permission = "portal.create",
Handler = HandleConnectCmd,
HelpString = "Connects 2 portals together",
ParameterCombinations = {
{
Params = "<portalName1> <portalName2>",
Help = "portalName1 gets connected to PortalName2. If portalName2 is already a target of portalName1 it is removed",
}
},
},
["/pdest"] =
{
Permission = "portal.create",
Handler = HandleMakeDestinationCommand,
HelpString = "Create the destination for a portal",
ParameterCombinations = {
{
Params = "<portalName>",
Help = "portal destination set to your position",
}
},
},
["/pinfo"] =
{
Permission = "portal.info",
Handler = HandleInfoCmd,
HelpString = "lists portals, or details for portal/player",
ParameterCombinations = {
{
Params = "",
Help = "Lists out all portals with connections",
},
{
Params = "<portalName>",
Help = "Shows individual portal config",
},
{
Params = "<playerName>",
Help = "Shows current plugin state for a player",
},
{
Params = "me",
Help = "Shows current plugin state for current player",
},
},
},
["/pmanage"] =
{
Permission = "portal.manage",
Handler = handleManageCmd,
HelpString = "enable/disable individual portals or all at once",
ParameterCombinations = {
{
Params = "enable/disable <portalName>",
Help = "Enable or disable a portal",
},
{
Params = "enable/disable all",
Help = "Enable or disable all portals",
},
},
},
["/pteleport"] =
{
Permission = "",
Handler = HandleTeleport,
HelpString = "teleports the user when they are in a teleport hub",
ParameterCombinations = {
{
Params = "portalName",
Help = "",
},
},
},
["/phelp"] =
{
Permission = "",
Handler = HandleHelpCmd,
HelpString = "Prints available commands for plugin or details about a command",
ParameterCombinations = {
{
Params = "",
Help = "prints all commands",
},
{
Params = "<commandName>",
Help = "prints command help",
},
},
},
},
}