From feee63b3af0a74db00c8cc8739e8e6fec1993550 Mon Sep 17 00:00:00 2001 From: MattBDev Date: Mon, 28 Mar 2016 13:02:20 -0400 Subject: [PATCH] Fix DebugLoadTest --- .../plot/commands/DebugLoadTest.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugLoadTest.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugLoadTest.java index 6e88149d4..32a4802be 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugLoadTest.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugLoadTest.java @@ -25,8 +25,6 @@ import com.intellectualcrafters.plot.database.DBFunc; import com.intellectualcrafters.plot.object.PlotPlayer; import com.plotsquared.general.commands.CommandDeclaration; -import java.lang.reflect.Field; - @CommandDeclaration( command = "debugloadtest", permission = "plots.debugloadtest", @@ -38,15 +36,7 @@ public class DebugLoadTest extends SubCommand { @Override public boolean onCommand(PlotPlayer plr, String[] args) { - try { - Field fPlots = PS.class.getDeclaredField("plots"); - fPlots.setAccessible(true); - fPlots.set(null, DBFunc.getPlots()); - } catch (Exception e) { - PS.debug("&3===FAILED&3==="); - e.printStackTrace(); - PS.debug("&3===END OF STACKTRACE==="); - } + PS.get().plots_tmp = DBFunc.getPlots(); return true; } }