From 7a6cef1d07759ba9d2162f71628f517c2f25787f Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sat, 27 Sep 2014 11:02:10 +1000 Subject: [PATCH] In eclipse you can use Window > Show view > Tasks --- .../src/com/intellectualcrafters/plot/PlotMain.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java b/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java index a82a2c338..8d4fa90e8 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java @@ -277,13 +277,18 @@ public class PlotMain extends JavaPlugin { * TODO: Implement better system * The whole point of this system is to recycle old plots * So why not just allow users to claim old plots, and try to hide the fact that the are owned. - * e.g. + * Reduce amount of expired plots: * - On /plot auto - allow claiming of old plot, clear it so the user doesn't know * - On /plot info, - show that the plot is expired and allowed to be claimed * - * Other possibilities: + * Have the task run less often: * - Run the task when there are very little, or no players online (great for small servers) * - Run the task at startup (also only useful for small servers) + * + * Also, in terms of faster code: + * - Have an array of plots, sorted by expiry time. + * - Add new plots to the end. + * - The task then only needs to go through the first few plots * * @param plugin * Plugin