Async schematic pasting

- We should replace the schematic on claim with this.
- worldedit listener now listens to plot deletion
- debugclaimtest command no longer pastes any schematics if there is on
set
This commit is contained in:
boy0001 2014-10-30 17:24:58 +11:00
parent 0aaf573186
commit 5395852cf0
9 changed files with 305 additions and 178 deletions

View file

@ -115,10 +115,9 @@ public class PlotMain extends JavaPlugin {
return new WorldGenerator(worldname);
}
@SuppressWarnings("deprecation")
public static void checkForExpiredPlots() {
final JavaPlugin plugin = PlotMain.getMain();
Bukkit.getScheduler().scheduleAsyncRepeatingTask(plugin, new Runnable() {
Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
@Override
public void run() {
checkExpired(plugin, true);
@ -1217,7 +1216,7 @@ public class PlotMain extends JavaPlugin {
options.put("mysql.user", "root");
options.put("mysql.password", "password");
options.put("mysql.database", "plot_db");
options.put("prefix", "plotsquared_");
options.put("prefix", "");
for (Entry<String, Object> node : options.entrySet()) {
if (!storage.contains(node.getKey())) {
storage.set(node.getKey(), node.getValue());