From f1c190028e51d695864f74d369e5ddf30ec345d7 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Mon, 12 Aug 2019 23:59:14 +0200 Subject: [PATCH] Fixes #2013 Tested with LuckPerms, result successful. --- Core/src/main/resources/addplots.js | 2 +- Core/src/main/resources/automerge.js | 28 +------------------------- Core/src/main/resources/fixborders.js | 29 ++------------------------- 3 files changed, 4 insertions(+), 55 deletions(-) diff --git a/Core/src/main/resources/addplots.js b/Core/src/main/resources/addplots.js index b45f8d4ff..f3696d7ff 100644 --- a/Core/src/main/resources/addplots.js +++ b/Core/src/main/resources/addplots.js @@ -1,6 +1,6 @@ /* This will increase a player's allowed plots by the provided value -/plot debugexec runasync addperm +/plot debugexec runasync addplots.js */ var uuid = UUIDHandler.getUUID('%s0', null); if (uuid === null) { diff --git a/Core/src/main/resources/automerge.js b/Core/src/main/resources/automerge.js index 220a24867..e2846f87e 100644 --- a/Core/src/main/resources/automerge.js +++ b/Core/src/main/resources/automerge.js @@ -1,32 +1,6 @@ /* -Need to script something quick with PlotSquared? -/plot debugexec runasync automerge.js - This is an example script that will auto merge all plots - -The following utility classes are usable: - - PlotSquared - - TaskManager - - TitleManager - - ConsolePlayer - - SchematicHandler - - ChunkManager - - BlockManager - - SetupUtils - - EventUtil - - UUIDHandler - - DBFunc - - HybridUtils - - IMP ( BukkitMain or SpongeMain) - - MainCommand - - MainUtil - - Settings - - StringMan - - MathMan - - C ( use C_ ) - - Permissions ( use Permissions_ ) - - For more information see: https://github.com/IntellectualSites/PlotSquared/wiki/Scripting +/plot debugexec runasync automerge.js */ var plots = PS.sortPlotsByTemp(PS.getPlots()); PS.class.static.log("Attempting to auto merge " + plots.size() + " plots"); diff --git a/Core/src/main/resources/fixborders.js b/Core/src/main/resources/fixborders.js index 779b54c61..1becaeb60 100644 --- a/Core/src/main/resources/fixborders.js +++ b/Core/src/main/resources/fixborders.js @@ -1,31 +1,6 @@ /* -Need to script something quick with PlotSquared? -/plot debugexec runasync fixborder.js - - -The following utility classes are usable: - - PS - - TaskManager - - TitleManager - - ConsolePlayer - - SchematicHandler - - ChunkManager - - BlockManager - - SetupUtils - - EventUtil - - UUIDHandler - - DBFunc - - HybridUtils - - IMP ( BukkitMain or SpongeMain) - - MainCommand - - MainUtil - - Settings - - StringMan - - MathMan - - C ( use C_ ) - - Permissions ( use Permissions_ ) - - For more information see: https://github.com/IntellectualSites/PlotSquared/wiki/Scripting +Fixes border around plots +/plot debugexec runasync fixborder.js */ var plots = PS.sortPlotsByTemp(PS.getPlots()); PS.class.static.log("Attempting to fix border for " + plots.size() + " plots");