Skip to content

Commit

Permalink
Fixed issues with CuberitePluginChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLSPACE committed Jun 14, 2024
1 parent ce775eb commit 33b56a0
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Tests/selection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

scenario
{
redirectPluginFiles
{
["config.cfg"] = "Tests/test.config.cfg"
},
world
{
name = "world"
Expand Down
52 changes: 52 additions & 0 deletions Tests/test.config.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
WandItem = 271,
Limits =
{
ButcherRadius = -1,
MaxBrushRadius = 5,
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},
},

Defaults =
{
ButcherRadius = 20,
},

NavigationWand =
{
Item = 345,
MaxDistance = 120,
TeleportNoHit = true,
},

Scripting =
{
-- If true it logs an error when a craftscript failed
Debug = false,

-- The amount of seconds that a script may be active. Any longer and the script will be aborted.
-- If negative the time a script can run is unlimited.
MaxExecutionTime = 5,
},

Schematics =
{
OverrideExistingFiles = true,
},

Updates =
{
CheckForUpdates = false,
NumAttempts = 3,
ShowMessageWhenUpToDate = true,
DownloadNewerVersion = true,
},

Storage =
{
-- If set to true the selection of a player will be remembered once he leaves.
RememberPlayerSelection = true,

-- If WorldEdit needs to change a format in the database the database will be backuped first before changing.
-- This doesn't mean when adding or removing data the database will be backed up. Only when the used database is outdated.
BackupDatabaseWhenUpdating = true,
}
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ g_ExcludedFolders = table.todictionary{


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

0 comments on commit 33b56a0

Please sign in to comment.