Repository navigation
Expand file tree
/
Copy pathInfo.lua
More file actions
83 lines (79 loc) · 2.05 KB
/
Copy pathInfo.lua
File metadata and controls
83 lines (79 loc) · 2.05 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
-- Info.lua
-- Implements the g_PluginInfo standard plugin description
g_PluginInfo =
{
Name = "ItemSpawner",
Version = "1",
Date = "2017-05-19",
-- SourceLocation = "https://github.com/cuberite/Core",
Description = [[Create a item spawner that spawns random items inside of a specified radius.]],
Commands =
{
["/itemspawner"] =
{
Handler = HandleHelpCommand,
HelpString = "Shows the list of arguments.",
Subcommands =
{
help =
{
Handler = HandleHelpCommand,
},
create =
{
Handler = HandleCreateCommand,
Permission = "itemspawner.create",
HelpString = "Create a new item spawner at player's location.",
},
remove =
{
Handler = HandleRemoveCommand,
Permission = "itemspawner.remove",
HelpString = "Removes a item spawner, will be disabled and deleted.",
},
list =
{
Handler = HandleListCommand,
Permission = "itemspawner.list",
HelpString = "List all item spawners. Names in green are enabled.",
},
info =
{
Handler = HandleInfoCommand,
Permission = "itemspawner.info",
HelpString = "Show info to the item spawner. The position, radius, interval.",
},
enable =
{
Handler = HandleEnableCommand,
Permission = "itemspawner.enable",
HelpString = "Enable the item spawner. Will then start spawning items in the radius at the specified interval.",
},
disable =
{
Handler = HandleDisableCommand,
Permission = "itemspawner.disable",
HelpString = "Disable the item spawner. Stop spawning items. ",
},
change =
{
Subcommands =
{
interval =
{
Handler = HandleChangeIntervalCommand,
Permission = "itemspawner.change.interval",
HelpString = "Change the interval. The time in seconds, between the spawning.",
},
radius =
{
Handler = HandleChangeRadiusCommand,
Permission = "itemspawner.change.radius",
HelpString = "Change the radius. The radius in blocks around of the spawner.",
},
},
},
},
},
},
}