Skip to content

Commit 33b56a0

Browse files
committed
Fixed issues with CuberitePluginChecker
1 parent ce775eb commit 33b56a0

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed

Tests/selection.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
scenario
1212
{
13+
redirectPluginFiles
14+
{
15+
["config.cfg"] = "Tests/test.config.cfg"
16+
},
1317
world
1418
{
1519
name = "world"

Tests/test.config.cfg

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
WandItem = 271,
2+
Limits =
3+
{
4+
ButcherRadius = -1,
5+
MaxBrushRadius = 5,
6+
DisallowedBlocks = {6, 7, 14, 15, 16, 26, 27, 28, 29, 39, 31, 32, 33, 34, 36, 37, 38, 39, 40, 46, 50, 51, 56, 59, 69, 73, 74, 75, 76, 77, 81, 83},
7+
},
8+
9+
Defaults =
10+
{
11+
ButcherRadius = 20,
12+
},
13+
14+
NavigationWand =
15+
{
16+
Item = 345,
17+
MaxDistance = 120,
18+
TeleportNoHit = true,
19+
},
20+
21+
Scripting =
22+
{
23+
-- If true it logs an error when a craftscript failed
24+
Debug = false,
25+
26+
-- The amount of seconds that a script may be active. Any longer and the script will be aborted.
27+
-- If negative the time a script can run is unlimited.
28+
MaxExecutionTime = 5,
29+
},
30+
31+
Schematics =
32+
{
33+
OverrideExistingFiles = true,
34+
},
35+
36+
Updates =
37+
{
38+
CheckForUpdates = false,
39+
NumAttempts = 3,
40+
ShowMessageWhenUpToDate = true,
41+
DownloadNewerVersion = true,
42+
},
43+
44+
Storage =
45+
{
46+
-- If set to true the selection of a player will be remembered once he leaves.
47+
RememberPlayerSelection = true,
48+
49+
-- If WorldEdit needs to change a format in the database the database will be backuped first before changing.
50+
-- This doesn't mean when adding or removing data the database will be backed up. Only when the used database is outdated.
51+
BackupDatabaseWhenUpdating = true,
52+
}

main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ g_ExcludedFolders = table.todictionary{
2828

2929

3030
-- Load all the folders
31-
local WorldEditPath = cPluginManager:GetCurrentPlugin():GetLocalFolder()
31+
local WorldEditPath = cPluginManager:Get():GetCurrentPlugin():GetLocalFolder()
3232
for _, Folder in ipairs(cFile:GetFolderContents(WorldEditPath)) do repeat
3333
local Path = WorldEditPath .. "/" .. Folder
3434
if (not cFile:IsFolder(Path)) then

0 commit comments

Comments
 (0)