mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-01 13:23:56 +01:00
Fix DebugLoadTest
This commit is contained in:
parent
c4f5905252
commit
feee63b3af
@ -25,8 +25,6 @@ import com.intellectualcrafters.plot.database.DBFunc;
|
|||||||
import com.intellectualcrafters.plot.object.PlotPlayer;
|
import com.intellectualcrafters.plot.object.PlotPlayer;
|
||||||
import com.plotsquared.general.commands.CommandDeclaration;
|
import com.plotsquared.general.commands.CommandDeclaration;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
|
||||||
|
|
||||||
@CommandDeclaration(
|
@CommandDeclaration(
|
||||||
command = "debugloadtest",
|
command = "debugloadtest",
|
||||||
permission = "plots.debugloadtest",
|
permission = "plots.debugloadtest",
|
||||||
@ -38,15 +36,7 @@ public class DebugLoadTest extends SubCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(PlotPlayer plr, String[] args) {
|
public boolean onCommand(PlotPlayer plr, String[] args) {
|
||||||
try {
|
PS.get().plots_tmp = DBFunc.getPlots();
|
||||||
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===");
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user