mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-10 06:23:14 +00:00
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:
parent
0aaf573186
commit
5395852cf0
9 changed files with 305 additions and 178 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue