mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-31 09:33:43 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			6.10.2
			...
			fix/v6/com
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 42f0b70e85 | 
| @@ -24,7 +24,7 @@ dependencies { | |||||||
|     implementation("org.bstats:bstats-bukkit") |     implementation("org.bstats:bstats-bukkit") | ||||||
|  |  | ||||||
|     // Paper |     // Paper | ||||||
|     compileOnly("io.papermc.paper:paper-api") |     compileOnly(libs.paper) | ||||||
|     implementation("io.papermc:paperlib") |     implementation("io.papermc:paperlib") | ||||||
|  |  | ||||||
|     // Plugins |     // Plugins | ||||||
|   | |||||||
| @@ -866,8 +866,10 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl | |||||||
|                                         com.plotsquared.core.location.Location pLoc = BukkitUtil.adapt(entity.getLocation()); |                                         com.plotsquared.core.location.Location pLoc = BukkitUtil.adapt(entity.getLocation()); | ||||||
|                                         PlotArea area = pLoc.getPlotArea(); |                                         PlotArea area = pLoc.getPlotArea(); | ||||||
|                                         if (area != null) { |                                         if (area != null) { | ||||||
|                                             Plot currentPlot = area.getPlotAbs(pLoc); |                                             PlotId currentPlotId = area.getPlotAbs(pLoc).getId(); | ||||||
|                                             if (currentPlot == null || !originalPlotId.equals(currentPlot.getId())) { |                                             if (!originalPlotId.equals(currentPlotId) && (currentPlotId == null || !area.getPlot( | ||||||
|  |                                                             originalPlotId) | ||||||
|  |                                                     .equals(area.getPlot(currentPlotId)))) { | ||||||
|                                                 if (entity.hasMetadata("ps-tmp-teleport")) { |                                                 if (entity.hasMetadata("ps-tmp-teleport")) { | ||||||
|                                                     continue; |                                                     continue; | ||||||
|                                                 } |                                                 } | ||||||
| @@ -881,11 +883,11 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl | |||||||
|                                     com.plotsquared.core.location.Location pLoc = BukkitUtil.adapt(entity.getLocation()); |                                     com.plotsquared.core.location.Location pLoc = BukkitUtil.adapt(entity.getLocation()); | ||||||
|                                     PlotArea area = pLoc.getPlotArea(); |                                     PlotArea area = pLoc.getPlotArea(); | ||||||
|                                     if (area != null) { |                                     if (area != null) { | ||||||
|                                         Plot currentPlot = area.getPlotAbs(pLoc); |                                         PlotId currentPlotId = area.getPlotAbs(pLoc).getId(); | ||||||
|                                         if (currentPlot != null) { |                                         if (currentPlotId != null) { | ||||||
|                                             entity.setMetadata( |                                             entity.setMetadata( | ||||||
|                                                     "shulkerPlot", |                                                     "shulkerPlot", | ||||||
|                                                     new FixedMetadataValue((Plugin) PlotSquared.platform(), currentPlot.getId()) |                                                     new FixedMetadataValue((Plugin) PlotSquared.platform(), currentPlotId) | ||||||
|                                             ); |                                             ); | ||||||
|                                         } |                                         } | ||||||
|                                     } |                                     } | ||||||
|   | |||||||
| @@ -32,7 +32,6 @@ import com.plotsquared.core.inject.annotations.DefaultGenerator; | |||||||
| import com.plotsquared.core.location.World; | import com.plotsquared.core.location.World; | ||||||
| import com.plotsquared.core.permissions.PermissionHandler; | import com.plotsquared.core.permissions.PermissionHandler; | ||||||
| import com.plotsquared.core.player.PlotPlayer; | import com.plotsquared.core.player.PlotPlayer; | ||||||
| import com.plotsquared.core.plot.expiration.ExpireManager; |  | ||||||
| import com.plotsquared.core.plot.world.PlotAreaManager; | import com.plotsquared.core.plot.world.PlotAreaManager; | ||||||
| import com.plotsquared.core.queue.GlobalBlockQueue; | import com.plotsquared.core.queue.GlobalBlockQueue; | ||||||
| import com.plotsquared.core.util.ChunkManager; | import com.plotsquared.core.util.ChunkManager; | ||||||
| @@ -285,16 +284,6 @@ public interface PlotPlatform<P> extends LocaleHolder { | |||||||
|         return injector().getInstance(ChunkManager.class); |         return injector().getInstance(ChunkManager.class); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * Get the {@link ExpireManager} implementation for the platform |  | ||||||
|      * |  | ||||||
|      * @return Expire manager |  | ||||||
|      * @since 6.10.2 |  | ||||||
|      */ |  | ||||||
|     default @NonNull ExpireManager expireManager() { |  | ||||||
|         return injector().getInstance(ExpireManager.class); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Get the {@link PlotAreaManager} implementation. |      * Get the {@link PlotAreaManager} implementation. | ||||||
|      * |      * | ||||||
|   | |||||||
| @@ -290,11 +290,11 @@ public class PlotSquared { | |||||||
|  |  | ||||||
|     public void startExpiryTasks() { |     public void startExpiryTasks() { | ||||||
|         if (Settings.Enabled_Components.PLOT_EXPIRY) { |         if (Settings.Enabled_Components.PLOT_EXPIRY) { | ||||||
|             ExpireManager expireManager = PlotSquared.platform().expireManager(); |             ExpireManager.IMP = new ExpireManager(this.eventDispatcher); | ||||||
|             expireManager.runAutomatedTask(); |             ExpireManager.IMP.runAutomatedTask(); | ||||||
|             for (Settings.Auto_Clear settings : Settings.AUTO_CLEAR.getInstances()) { |             for (Settings.Auto_Clear settings : Settings.AUTO_CLEAR.getInstances()) { | ||||||
|                 ExpiryTask task = new ExpiryTask(settings, this.getPlotAreaManager()); |                 ExpiryTask task = new ExpiryTask(settings, this.getPlotAreaManager()); | ||||||
|                 expireManager.addTask(task); |                 ExpireManager.IMP.addTask(task); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| @@ -645,8 +645,7 @@ public class PlotSquared { | |||||||
|         } else { |         } else { | ||||||
|             list = new ArrayList<>(input); |             list = new ArrayList<>(input); | ||||||
|         } |         } | ||||||
|         ExpireManager expireManager = PlotSquared.platform().expireManager(); |         list.sort(Comparator.comparingLong(a -> ExpireManager.IMP.getTimestamp(a.getOwnerAbs()))); | ||||||
|         list.sort(Comparator.comparingLong(a -> expireManager.getTimestamp(a.getOwnerAbs()))); |  | ||||||
|         return list; |         return list; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -19,7 +19,6 @@ | |||||||
| package com.plotsquared.core.command; | package com.plotsquared.core.command; | ||||||
|  |  | ||||||
| import com.google.inject.Inject; | import com.google.inject.Inject; | ||||||
| import com.plotsquared.core.PlotSquared; |  | ||||||
| import com.plotsquared.core.configuration.caption.StaticCaption; | import com.plotsquared.core.configuration.caption.StaticCaption; | ||||||
| import com.plotsquared.core.configuration.caption.TranslatableCaption; | import com.plotsquared.core.configuration.caption.TranslatableCaption; | ||||||
| import com.plotsquared.core.events.PlotFlagRemoveEvent; | import com.plotsquared.core.events.PlotFlagRemoveEvent; | ||||||
| @@ -140,7 +139,10 @@ public class DebugExec extends SubCommand { | |||||||
|                     return true; |                     return true; | ||||||
|                 } |                 } | ||||||
|                 case "start-expire" -> { |                 case "start-expire" -> { | ||||||
|                     if (PlotSquared.platform().expireManager().runAutomatedTask()) { |                     if (ExpireManager.IMP == null) { | ||||||
|  |                         ExpireManager.IMP = new ExpireManager(this.eventDispatcher); | ||||||
|  |                     } | ||||||
|  |                     if (ExpireManager.IMP.runAutomatedTask()) { | ||||||
|                         player.sendMessage(TranslatableCaption.of("debugexec.expiry_started")); |                         player.sendMessage(TranslatableCaption.of("debugexec.expiry_started")); | ||||||
|                     } else { |                     } else { | ||||||
|                         player.sendMessage(TranslatableCaption.of("debugexec.expiry_already_started")); |                         player.sendMessage(TranslatableCaption.of("debugexec.expiry_already_started")); | ||||||
| @@ -148,7 +150,7 @@ public class DebugExec extends SubCommand { | |||||||
|                     return true; |                     return true; | ||||||
|                 } |                 } | ||||||
|                 case "stop-expire" -> { |                 case "stop-expire" -> { | ||||||
|                     if (!PlotSquared.platform().expireManager().cancelTask()) { |                     if (ExpireManager.IMP == null || !ExpireManager.IMP.cancelTask()) { | ||||||
|                         player.sendMessage(TranslatableCaption.of("debugexec.task_halted")); |                         player.sendMessage(TranslatableCaption.of("debugexec.task_halted")); | ||||||
|                     } else { |                     } else { | ||||||
|                         player.sendMessage(TranslatableCaption.of("debugexec.task_cancelled")); |                         player.sendMessage(TranslatableCaption.of("debugexec.task_cancelled")); | ||||||
|   | |||||||
| @@ -19,7 +19,6 @@ | |||||||
| package com.plotsquared.core.command; | package com.plotsquared.core.command; | ||||||
|  |  | ||||||
| import com.google.inject.Inject; | import com.google.inject.Inject; | ||||||
| import com.plotsquared.core.PlotSquared; |  | ||||||
| import com.plotsquared.core.configuration.Settings; | import com.plotsquared.core.configuration.Settings; | ||||||
| import com.plotsquared.core.configuration.caption.TranslatableCaption; | import com.plotsquared.core.configuration.caption.TranslatableCaption; | ||||||
| import com.plotsquared.core.events.PlotDoneEvent; | import com.plotsquared.core.events.PlotDoneEvent; | ||||||
| @@ -30,6 +29,7 @@ import com.plotsquared.core.location.Location; | |||||||
| import com.plotsquared.core.permissions.Permission; | import com.plotsquared.core.permissions.Permission; | ||||||
| import com.plotsquared.core.player.PlotPlayer; | import com.plotsquared.core.player.PlotPlayer; | ||||||
| import com.plotsquared.core.plot.Plot; | import com.plotsquared.core.plot.Plot; | ||||||
|  | import com.plotsquared.core.plot.expiration.ExpireManager; | ||||||
| import com.plotsquared.core.plot.expiration.PlotAnalysis; | import com.plotsquared.core.plot.expiration.PlotAnalysis; | ||||||
| import com.plotsquared.core.plot.flag.PlotFlag; | import com.plotsquared.core.plot.flag.PlotFlag; | ||||||
| import com.plotsquared.core.plot.flag.implementations.DoneFlag; | import com.plotsquared.core.plot.flag.implementations.DoneFlag; | ||||||
| @@ -94,7 +94,7 @@ public class Done extends SubCommand { | |||||||
|                 Template.of("plot", plot.getId().toString()) |                 Template.of("plot", plot.getId().toString()) | ||||||
|         ); |         ); | ||||||
|         final Settings.Auto_Clear doneRequirements = Settings.AUTO_CLEAR.get("done"); |         final Settings.Auto_Clear doneRequirements = Settings.AUTO_CLEAR.get("done"); | ||||||
|         if (PlotSquared.platform().expireManager() == null || doneRequirements == null) { |         if (ExpireManager.IMP == null || doneRequirements == null) { | ||||||
|             finish(plot, player, true); |             finish(plot, player, true); | ||||||
|             plot.removeRunning(); |             plot.removeRunning(); | ||||||
|         } else { |         } else { | ||||||
|   | |||||||
| @@ -30,6 +30,7 @@ import com.plotsquared.core.permissions.Permission; | |||||||
| import com.plotsquared.core.player.PlotPlayer; | import com.plotsquared.core.player.PlotPlayer; | ||||||
| import com.plotsquared.core.plot.Plot; | import com.plotsquared.core.plot.Plot; | ||||||
| import com.plotsquared.core.plot.PlotArea; | import com.plotsquared.core.plot.PlotArea; | ||||||
|  | import com.plotsquared.core.plot.expiration.ExpireManager; | ||||||
| import com.plotsquared.core.plot.flag.implementations.DoneFlag; | import com.plotsquared.core.plot.flag.implementations.DoneFlag; | ||||||
| import com.plotsquared.core.plot.flag.implementations.PriceFlag; | import com.plotsquared.core.plot.flag.implementations.PriceFlag; | ||||||
| import com.plotsquared.core.plot.flag.implementations.ServerPlotFlag; | import com.plotsquared.core.plot.flag.implementations.ServerPlotFlag; | ||||||
| @@ -239,7 +240,7 @@ public class ListCmd extends SubCommand { | |||||||
|                     ); |                     ); | ||||||
|                     return false; |                     return false; | ||||||
|                 } |                 } | ||||||
|                 if (PlotSquared.platform().expireManager() == null) { |                 if (ExpireManager.IMP == null) { | ||||||
|                     plotConsumer.accept(PlotQuery.newQuery().noPlots()); |                     plotConsumer.accept(PlotQuery.newQuery().noPlots()); | ||||||
|                 } else { |                 } else { | ||||||
|                     plotConsumer.accept(PlotQuery.newQuery().expiredPlots()); |                     plotConsumer.accept(PlotQuery.newQuery().expiredPlots()); | ||||||
|   | |||||||
| @@ -25,6 +25,7 @@ import com.plotsquared.core.configuration.caption.TranslatableCaption; | |||||||
| import com.plotsquared.core.location.Location; | import com.plotsquared.core.location.Location; | ||||||
| import com.plotsquared.core.player.PlotPlayer; | import com.plotsquared.core.player.PlotPlayer; | ||||||
| import com.plotsquared.core.plot.Plot; | import com.plotsquared.core.plot.Plot; | ||||||
|  | import com.plotsquared.core.plot.expiration.ExpireManager; | ||||||
| import com.plotsquared.core.plot.world.PlotAreaManager; | import com.plotsquared.core.plot.world.PlotAreaManager; | ||||||
| import com.plotsquared.core.queue.GlobalBlockQueue; | import com.plotsquared.core.queue.GlobalBlockQueue; | ||||||
| import com.plotsquared.core.queue.QueueCoordinator; | import com.plotsquared.core.queue.QueueCoordinator; | ||||||
| @@ -91,8 +92,8 @@ public class Trim extends SubCommand { | |||||||
|         } |         } | ||||||
|         TranslatableCaption.of("trim.trim_starting"); |         TranslatableCaption.of("trim.trim_starting"); | ||||||
|         final List<Plot> plots = PlotQuery.newQuery().inWorld(world).asList(); |         final List<Plot> plots = PlotQuery.newQuery().inWorld(world).asList(); | ||||||
|         if (PlotSquared.platform().expireManager() != null) { |         if (ExpireManager.IMP != null) { | ||||||
|             plots.removeAll(PlotSquared.platform().expireManager().getPendingExpired()); |             plots.removeAll(ExpireManager.IMP.getPendingExpired()); | ||||||
|         } |         } | ||||||
|         result.value1 = new HashSet<>(PlotSquared.platform().worldUtil().getChunkChunks(world)); |         result.value1 = new HashSet<>(PlotSquared.platform().worldUtil().getChunkChunks(world)); | ||||||
|         result.value2 = new HashSet<>(); |         result.value2 = new HashSet<>(); | ||||||
|   | |||||||
| @@ -53,10 +53,7 @@ final class ClassLoaderCaptionProvider implements DefaultCaptionProvider { | |||||||
|         try { |         try { | ||||||
|             final InputStream stream = this.classLoader.getResourceAsStream(url); |             final InputStream stream = this.classLoader.getResourceAsStream(url); | ||||||
|             if (stream == null) { |             if (stream == null) { | ||||||
|                 LOGGER.info("No resource for locale '{}' found in the plugin file." + |                 LOGGER.warn("No resource for locale '{}' found", locale); | ||||||
|                                 "Please ensure you have placed the latest version of the file messages_{}.json in the 'lang' folder." + |  | ||||||
|                                 "You may be able to find completed translations at https://intellectualsites.crowdin.com/plotsquared", |  | ||||||
|                         locale, locale); |  | ||||||
|                 return null; |                 return null; | ||||||
|             } |             } | ||||||
|             try (final BufferedReader reader = new BufferedReader(new InputStreamReader(stream))) { |             try (final BufferedReader reader = new BufferedReader(new InputStreamReader(stream))) { | ||||||
|   | |||||||
| @@ -174,9 +174,8 @@ public class HybridPlotManager extends ClassicPlotManager { | |||||||
|                     for (int y = 0; y < blocks.length; y++) { |                     for (int y = 0; y < blocks.length; y++) { | ||||||
|                         if (blocks[y] != null) { |                         if (blocks[y] != null) { | ||||||
|                             queue.setBlock(x, minY + y, z, blocks[y]); |                             queue.setBlock(x, minY + y, z, blocks[y]); | ||||||
|                         } else if (!isRoad) { |                         } else { | ||||||
|                             // This is necessary, otherwise any blocks not specified in the schematic will remain after a clear |                             // This is necessary, otherwise any blocks not specified in the schematic will remain after a clear | ||||||
|                             //  Do not set air for road as this may cause cavernous roads when debugroadregen is used |  | ||||||
|                             queue.setBlock(x, minY + y, z, airBlock); |                             queue.setBlock(x, minY + y, z, airBlock); | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
|   | |||||||
| @@ -21,6 +21,7 @@ package com.plotsquared.core.generator; | |||||||
| import com.google.inject.Inject; | import com.google.inject.Inject; | ||||||
| import com.google.inject.assistedinject.Assisted; | import com.google.inject.assistedinject.Assisted; | ||||||
| import com.intellectualsites.annotations.DoNotUse; | import com.intellectualsites.annotations.DoNotUse; | ||||||
|  | import com.intellectualsites.annotations.NotPublic; | ||||||
| import com.plotsquared.core.PlotSquared; | import com.plotsquared.core.PlotSquared; | ||||||
| import com.plotsquared.core.configuration.ConfigurationSection; | import com.plotsquared.core.configuration.ConfigurationSection; | ||||||
| import com.plotsquared.core.configuration.Settings; | import com.plotsquared.core.configuration.Settings; | ||||||
| @@ -74,9 +75,6 @@ public class HybridPlotWorld extends ClassicPlotWorld { | |||||||
|     public short PATH_WIDTH_UPPER; |     public short PATH_WIDTH_UPPER; | ||||||
|     public HashMap<Integer, BaseBlock[]> G_SCH; |     public HashMap<Integer, BaseBlock[]> G_SCH; | ||||||
|     public HashMap<Integer, BiomeType> G_SCH_B; |     public HashMap<Integer, BiomeType> G_SCH_B; | ||||||
|     /** |  | ||||||
|      * The Y level at which schematic generation will start, lowest of either road or plot schematic generation. |  | ||||||
|      */ |  | ||||||
|     public int SCHEM_Y; |     public int SCHEM_Y; | ||||||
|     private Location SIGN_LOCATION; |     private Location SIGN_LOCATION; | ||||||
|     private File root = null; |     private File root = null; | ||||||
| @@ -269,64 +267,34 @@ public class HybridPlotWorld extends ClassicPlotWorld { | |||||||
|         int oddshift = (this.ROAD_WIDTH & 1); |         int oddshift = (this.ROAD_WIDTH & 1); | ||||||
|  |  | ||||||
|         SCHEM_Y = schematicStartHeight(); |         SCHEM_Y = schematicStartHeight(); | ||||||
|  |  | ||||||
|         // plotY and roadY are important to allow plot and/or road schematic "overflow" into each other without causing AIOOB |  | ||||||
|         //  exceptions when attempting either to set blocks to, or get block from G_SCH |  | ||||||
|         // Default plot schematic start height, normalized to the minimum height schematics are pasted from. |  | ||||||
|         int plotY = PLOT_HEIGHT - SCHEM_Y; |         int plotY = PLOT_HEIGHT - SCHEM_Y; | ||||||
|         int minRoadWall = Settings.Schematics.USE_WALL_IN_ROAD_SCHEM_HEIGHT ? Math.min(ROAD_HEIGHT, WALL_HEIGHT) : ROAD_HEIGHT; |         int minRoadWall = Settings.Schematics.USE_WALL_IN_ROAD_SCHEM_HEIGHT ? Math.min(ROAD_HEIGHT, WALL_HEIGHT) : ROAD_HEIGHT; | ||||||
|         // Default road schematic start height, normalized to the minimum height schematics are pasted from. |  | ||||||
|         int roadY = minRoadWall - SCHEM_Y; |         int roadY = minRoadWall - SCHEM_Y; | ||||||
|  |  | ||||||
|         int worldGenHeight = getMaxGenHeight() - getMinGenHeight() + 1; |         int worldHeight = getMaxGenHeight() - getMinGenHeight() + 1; | ||||||
|  |  | ||||||
|         int maxSchematicHeight = 0; |  | ||||||
|         int plotSchemHeight = 0; |  | ||||||
|  |  | ||||||
|         // SCHEM_Y should be normalised to the plot "start" height |         // SCHEM_Y should be normalised to the plot "start" height | ||||||
|         if (schematic3 != null) { |         if (schematic3 != null) { | ||||||
|             plotSchemHeight = maxSchematicHeight = schematic3.getClipboard().getDimensions().getY(); |             if (schematic3.getClipboard().getDimensions().getY() == worldHeight) { | ||||||
|             if (maxSchematicHeight == worldGenHeight) { |                 SCHEM_Y = plotY = 0; | ||||||
|                 SCHEM_Y = getMinGenHeight(); |  | ||||||
|                 plotY = 0; |  | ||||||
|             } else if (!Settings.Schematics.PASTE_ON_TOP) { |             } else if (!Settings.Schematics.PASTE_ON_TOP) { | ||||||
|                 SCHEM_Y = getMinBuildHeight(); |                 SCHEM_Y = plotY = getMinBuildHeight() - getMinGenHeight(); | ||||||
|                 plotY = 0; |  | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         int roadSchemHeight; |  | ||||||
|  |  | ||||||
|         if (schematic1 != null) { |         if (schematic1 != null) { | ||||||
|             roadSchemHeight = schematic1.getClipboard().getDimensions().getY(); |             if (schematic1.getClipboard().getDimensions().getY() == worldHeight) { | ||||||
|             maxSchematicHeight = Math.max(roadSchemHeight, maxSchematicHeight); |                 SCHEM_Y = roadY = getMinGenHeight(); | ||||||
|             if (maxSchematicHeight == worldGenHeight) { |                 if (schematic3 != null && schematic3.getClipboard().getDimensions().getY() != worldHeight | ||||||
|                 SCHEM_Y = getMinGenHeight(); |                         && !Settings.Schematics.PASTE_ON_TOP) { | ||||||
|                 roadY = 0; // Road is the lowest schematic |                     plotY = PLOT_HEIGHT; | ||||||
|                 if (schematic3 != null && schematic3.getClipboard().getDimensions().getY() != worldGenHeight) { |  | ||||||
|                     // Road is the lowest schematic. Normalize plotY to it. |  | ||||||
|                     if (Settings.Schematics.PASTE_ON_TOP) { |  | ||||||
|                         plotY = PLOT_HEIGHT - getMinGenHeight(); |  | ||||||
|                     } else { |  | ||||||
|                         plotY = getMinBuildHeight() - getMinGenHeight(); |  | ||||||
|                     } |  | ||||||
|                 } |                 } | ||||||
|             } else if (!Settings.Schematics.PASTE_ROAD_ON_TOP) { |             } else if (!Settings.Schematics.PASTE_ROAD_ON_TOP) { | ||||||
|                 if (SCHEM_Y == getMinGenHeight()) { // Only possible if plot schematic is enabled |                 SCHEM_Y = roadY = getMinBuildHeight(); | ||||||
|                     // Plot is still the lowest schematic, normalize roadY to it |                 if (schematic3 != null && schematic3.getClipboard().getDimensions().getY() != worldHeight | ||||||
|                     roadY = getMinBuildHeight() - getMinGenHeight(); |                         && !Settings.Schematics.PASTE_ON_TOP) { | ||||||
|                 } else if (schematic3 != null) { |                     plotY = PLOT_HEIGHT; | ||||||
|                     SCHEM_Y = getMinBuildHeight(); |  | ||||||
|                     roadY = 0;// Road is the lowest schematic |  | ||||||
|                     if (Settings.Schematics.PASTE_ON_TOP) { |  | ||||||
|                         // Road is the lowest schematic. Normalize plotY to it. |  | ||||||
|                         plotY = PLOT_HEIGHT - getMinBuildHeight(); |  | ||||||
|                 } |                 } | ||||||
|                     maxSchematicHeight = Math.max(maxSchematicHeight, plotY + plotSchemHeight); |  | ||||||
|                 } |  | ||||||
|             } else { |  | ||||||
|                 roadY = minRoadWall - SCHEM_Y; |  | ||||||
|                 maxSchematicHeight = Math.max(maxSchematicHeight, roadY + roadSchemHeight); |  | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
| @@ -363,6 +331,7 @@ public class HybridPlotWorld extends ClassicPlotWorld { | |||||||
|                                 y + min.getBlockY(), |                                 y + min.getBlockY(), | ||||||
|                                 z + min.getBlockZ() |                                 z + min.getBlockZ() | ||||||
|                         )); |                         )); | ||||||
|  |                         if (!id.getBlockType().getMaterial().isAir()) { | ||||||
|                             schem3PopulationNeeded |= id.hasNbtData(); |                             schem3PopulationNeeded |= id.hasNbtData(); | ||||||
|                             addOverlayBlock( |                             addOverlayBlock( | ||||||
|                                     (short) (x + shift + oddshift + centerShiftX), |                                     (short) (x + shift + oddshift + centerShiftX), | ||||||
| @@ -370,9 +339,10 @@ public class HybridPlotWorld extends ClassicPlotWorld { | |||||||
|                                     (short) (z + shift + oddshift + centerShiftZ), |                                     (short) (z + shift + oddshift + centerShiftZ), | ||||||
|                                     id, |                                     id, | ||||||
|                                     false, |                                     false, | ||||||
|                                 maxSchematicHeight |                                     h3 | ||||||
|                             ); |                             ); | ||||||
|                         } |                         } | ||||||
|  |                     } | ||||||
|                     if (blockArrayClipboard3.hasBiomes()) { |                     if (blockArrayClipboard3.hasBiomes()) { | ||||||
|                         BiomeType biome = blockArrayClipboard3.getBiome(BlockVector2.at( |                         BiomeType biome = blockArrayClipboard3.getBiome(BlockVector2.at( | ||||||
|                                 x + min.getBlockX(), |                                 x + min.getBlockX(), | ||||||
| @@ -421,24 +391,19 @@ public class HybridPlotWorld extends ClassicPlotWorld { | |||||||
|                             y + min.getBlockY(), |                             y + min.getBlockY(), | ||||||
|                             z + min.getBlockZ() |                             z + min.getBlockZ() | ||||||
|                     )); |                     )); | ||||||
|  |                     if (!id.getBlockType().getMaterial().isAir()) { | ||||||
|                         schem1PopulationNeeded |= id.hasNbtData(); |                         schem1PopulationNeeded |= id.hasNbtData(); | ||||||
|                     addOverlayBlock( |                         addOverlayBlock((short) (x - shift), (short) (y + roadY), (short) (z + shift + oddshift), id, false, h1); | ||||||
|                             (short) (x - shift), |  | ||||||
|                             (short) (y + roadY), |  | ||||||
|                             (short) (z + shift + oddshift), |  | ||||||
|                             id, |  | ||||||
|                             false, |  | ||||||
|                             maxSchematicHeight |  | ||||||
|                     ); |  | ||||||
|                         addOverlayBlock( |                         addOverlayBlock( | ||||||
|                                 (short) (z + shift + oddshift), |                                 (short) (z + shift + oddshift), | ||||||
|                                 (short) (y + roadY), |                                 (short) (y + roadY), | ||||||
|                                 (short) (shift - x + (oddshift - 1)), |                                 (short) (shift - x + (oddshift - 1)), | ||||||
|                                 id, |                                 id, | ||||||
|                                 true, |                                 true, | ||||||
|                             maxSchematicHeight |                                 h1 | ||||||
|                         ); |                         ); | ||||||
|                     } |                     } | ||||||
|  |                 } | ||||||
|                 if (blockArrayClipboard1.hasBiomes()) { |                 if (blockArrayClipboard1.hasBiomes()) { | ||||||
|                     BiomeType biome = blockArrayClipboard1.getBiome(BlockVector2.at(x + min.getBlockX(), z + min.getBlockZ())); |                     BiomeType biome = blockArrayClipboard1.getBiome(BlockVector2.at(x + min.getBlockX(), z + min.getBlockZ())); | ||||||
|                     addOverlayBiome((short) (x - shift), (short) (z + shift + oddshift), biome); |                     addOverlayBiome((short) (x - shift), (short) (z + shift + oddshift), biome); | ||||||
| @@ -465,15 +430,10 @@ public class HybridPlotWorld extends ClassicPlotWorld { | |||||||
|                             y + min.getBlockY(), |                             y + min.getBlockY(), | ||||||
|                             z + min.getBlockZ() |                             z + min.getBlockZ() | ||||||
|                     )); |                     )); | ||||||
|  |                     if (!id.getBlockType().getMaterial().isAir()) { | ||||||
|                         schem2PopulationNeeded |= id.hasNbtData(); |                         schem2PopulationNeeded |= id.hasNbtData(); | ||||||
|                     addOverlayBlock( |                         addOverlayBlock((short) (x - shift), (short) (y + roadY), (short) (z - shift), id, false, h2); | ||||||
|                             (short) (x - shift), |                     } | ||||||
|                             (short) (y + roadY), |  | ||||||
|                             (short) (z - shift), |  | ||||||
|                             id, |  | ||||||
|                             false, |  | ||||||
|                             maxSchematicHeight |  | ||||||
|                     ); |  | ||||||
|                 } |                 } | ||||||
|                 if (blockArrayClipboard2.hasBiomes()) { |                 if (blockArrayClipboard2.hasBiomes()) { | ||||||
|                     BiomeType biome = blockArrayClipboard2.getBiome(BlockVector2.at(x + min.getBlockX(), z + min.getBlockZ())); |                     BiomeType biome = blockArrayClipboard2.getBiome(BlockVector2.at(x + min.getBlockX(), z + min.getBlockZ())); | ||||||
| @@ -483,10 +443,6 @@ public class HybridPlotWorld extends ClassicPlotWorld { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * @deprecated This method should not be available for public API usage and will be made private. |  | ||||||
|      */ |  | ||||||
|     @Deprecated(forRemoval = true, since = "6.10.2") |  | ||||||
|     public void addOverlayBlock(short x, short y, short z, BaseBlock id, boolean rotate, int height) { |     public void addOverlayBlock(short x, short y, short z, BaseBlock id, boolean rotate, int height) { | ||||||
|         if (z < 0) { |         if (z < 0) { | ||||||
|             z += this.SIZE; |             z += this.SIZE; | ||||||
| @@ -506,22 +462,13 @@ public class HybridPlotWorld extends ClassicPlotWorld { | |||||||
|         if (y >= height) { |         if (y >= height) { | ||||||
|             if (y > lastOverlayHeightError) { |             if (y > lastOverlayHeightError) { | ||||||
|                 lastOverlayHeightError = y; |                 lastOverlayHeightError = y; | ||||||
|                 LOGGER.error( |                 LOGGER.error(String.format("Error adding overlay block. `y > height`. y=%s, height=%s", y, height)); | ||||||
|                         "Error adding overlay block in world {}. `y > height`. y={}, height={}", |  | ||||||
|                         getWorldName(), |  | ||||||
|                         y, |  | ||||||
|                         height |  | ||||||
|                 ); |  | ||||||
|             } |             } | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|         existing[y] = id; |         existing[y] = id; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * @deprecated This method should not be available for public API usage and will be made private. |  | ||||||
|      */ |  | ||||||
|     @Deprecated(forRemoval = true, since = "6.10.2") |  | ||||||
|     public void addOverlayBiome(short x, short z, BiomeType id) { |     public void addOverlayBiome(short x, short z, BiomeType id) { | ||||||
|         if (z < 0) { |         if (z < 0) { | ||||||
|             z += this.SIZE; |             z += this.SIZE; | ||||||
|   | |||||||
| @@ -36,6 +36,7 @@ import com.plotsquared.core.plot.PlotArea; | |||||||
| import com.plotsquared.core.plot.PlotTitle; | import com.plotsquared.core.plot.PlotTitle; | ||||||
| import com.plotsquared.core.plot.PlotWeather; | import com.plotsquared.core.plot.PlotWeather; | ||||||
| import com.plotsquared.core.plot.comment.CommentManager; | import com.plotsquared.core.plot.comment.CommentManager; | ||||||
|  | import com.plotsquared.core.plot.expiration.ExpireManager; | ||||||
| import com.plotsquared.core.plot.flag.GlobalFlagContainer; | import com.plotsquared.core.plot.flag.GlobalFlagContainer; | ||||||
| import com.plotsquared.core.plot.flag.PlotFlag; | import com.plotsquared.core.plot.flag.PlotFlag; | ||||||
| import com.plotsquared.core.plot.flag.implementations.DenyExitFlag; | import com.plotsquared.core.plot.flag.implementations.DenyExitFlag; | ||||||
| @@ -162,8 +163,8 @@ public class PlotListener { | |||||||
|             if ((last != null) && !last.getId().equals(plot.getId())) { |             if ((last != null) && !last.getId().equals(plot.getId())) { | ||||||
|                 plotExit(player, last); |                 plotExit(player, last); | ||||||
|             } |             } | ||||||
|             if (PlotSquared.platform().expireManager() != null) { |             if (ExpireManager.IMP != null) { | ||||||
|                 PlotSquared.platform().expireManager().handleEntry(player, plot); |                 ExpireManager.IMP.handleEntry(player, plot); | ||||||
|             } |             } | ||||||
|             lastPlot.set(plot); |             lastPlot.set(plot); | ||||||
|         } |         } | ||||||
|   | |||||||
| @@ -42,6 +42,7 @@ import com.plotsquared.core.plot.PlotArea; | |||||||
| import com.plotsquared.core.plot.PlotCluster; | import com.plotsquared.core.plot.PlotCluster; | ||||||
| import com.plotsquared.core.plot.PlotId; | import com.plotsquared.core.plot.PlotId; | ||||||
| import com.plotsquared.core.plot.PlotWeather; | import com.plotsquared.core.plot.PlotWeather; | ||||||
|  | import com.plotsquared.core.plot.expiration.ExpireManager; | ||||||
| import com.plotsquared.core.plot.flag.implementations.DoneFlag; | import com.plotsquared.core.plot.flag.implementations.DoneFlag; | ||||||
| import com.plotsquared.core.plot.world.PlotAreaManager; | import com.plotsquared.core.plot.world.PlotAreaManager; | ||||||
| import com.plotsquared.core.plot.world.SinglePlotArea; | import com.plotsquared.core.plot.world.SinglePlotArea; | ||||||
| @@ -617,8 +618,8 @@ public abstract class PlotPlayer<P> implements CommandCaller, OfflinePlotPlayer, | |||||||
|                 LOGGER.info("Plot {} was deleted + cleared due to {} getting banned", owned.getId(), getName()); |                 LOGGER.info("Plot {} was deleted + cleared due to {} getting banned", owned.getId(), getName()); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         if (PlotSquared.platform().expireManager() != null) { |         if (ExpireManager.IMP != null) { | ||||||
|             PlotSquared.platform().expireManager().storeDate(getUUID(), System.currentTimeMillis()); |             ExpireManager.IMP.storeDate(getUUID(), System.currentTimeMillis()); | ||||||
|         } |         } | ||||||
|         PlotSquared.platform().playerManager().removePlayer(this); |         PlotSquared.platform().playerManager().removePlayer(this); | ||||||
|         PlotSquared.platform().unregister(this); |         PlotSquared.platform().unregister(this); | ||||||
|   | |||||||
| @@ -40,6 +40,7 @@ import com.plotsquared.core.location.Location; | |||||||
| import com.plotsquared.core.permissions.Permission; | import com.plotsquared.core.permissions.Permission; | ||||||
| import com.plotsquared.core.player.ConsolePlayer; | import com.plotsquared.core.player.ConsolePlayer; | ||||||
| import com.plotsquared.core.player.PlotPlayer; | import com.plotsquared.core.player.PlotPlayer; | ||||||
|  | import com.plotsquared.core.plot.expiration.ExpireManager; | ||||||
| import com.plotsquared.core.plot.expiration.PlotAnalysis; | import com.plotsquared.core.plot.expiration.PlotAnalysis; | ||||||
| import com.plotsquared.core.plot.flag.FlagContainer; | import com.plotsquared.core.plot.flag.FlagContainer; | ||||||
| import com.plotsquared.core.plot.flag.GlobalFlagContainer; | import com.plotsquared.core.plot.flag.GlobalFlagContainer; | ||||||
| @@ -1104,8 +1105,8 @@ public class Plot { | |||||||
|      * @return A boolean indicating whether or not the operation succeeded |      * @return A boolean indicating whether or not the operation succeeded | ||||||
|      */ |      */ | ||||||
|     public <V> boolean setFlag(final @NonNull PlotFlag<V, ?> flag) { |     public <V> boolean setFlag(final @NonNull PlotFlag<V, ?> flag) { | ||||||
|         if (flag instanceof KeepFlag && PlotSquared.platform().expireManager() != null) { |         if (flag instanceof KeepFlag && ExpireManager.IMP != null) { | ||||||
|             PlotSquared.platform().expireManager().updateExpired(this); |             ExpireManager.IMP.updateExpired(this); | ||||||
|         } |         } | ||||||
|         for (final Plot plot : this.getConnectedPlots()) { |         for (final Plot plot : this.getConnectedPlots()) { | ||||||
|             plot.getFlagContainer().addFlag(flag); |             plot.getFlagContainer().addFlag(flag); | ||||||
| @@ -2830,11 +2831,11 @@ public class Plot { | |||||||
|                     Component members = PlayerManager.getPlayerList(this.getMembers(), player); |                     Component members = PlayerManager.getPlayerList(this.getMembers(), player); | ||||||
|                     Component denied = PlayerManager.getPlayerList(this.getDenied(), player); |                     Component denied = PlayerManager.getPlayerList(this.getDenied(), player); | ||||||
|                     String seen; |                     String seen; | ||||||
|                     if (Settings.Enabled_Components.PLOT_EXPIRY && PlotSquared.platform().expireManager() != null) { |                     if (Settings.Enabled_Components.PLOT_EXPIRY && ExpireManager.IMP != null) { | ||||||
|                         if (this.isOnline()) { |                         if (this.isOnline()) { | ||||||
|                             seen = TranslatableCaption.of("info.now").getComponent(player); |                             seen = TranslatableCaption.of("info.now").getComponent(player); | ||||||
|                         } else { |                         } else { | ||||||
|                             int time = (int) (PlotSquared.platform().expireManager().getAge(this, false) / 1000); |                             int time = (int) (ExpireManager.IMP.getAge(this, false) / 1000); | ||||||
|                             if (time != 0) { |                             if (time != 0) { | ||||||
|                                 seen = TimeUtil.secToTime(time); |                                 seen = TimeUtil.secToTime(time); | ||||||
|                             } else { |                             } else { | ||||||
|   | |||||||
| @@ -112,7 +112,7 @@ public final class PlotId { | |||||||
|      * @return Plot ID copy |      * @return Plot ID copy | ||||||
|      * @deprecated PlotId is immutable, copy is not required. |      * @deprecated PlotId is immutable, copy is not required. | ||||||
|      */ |      */ | ||||||
|     @Deprecated(forRemoval = true, since = "6.10.2") |     @Deprecated(forRemoval = true, since = "TODO") | ||||||
|     public @NonNull PlotId copy() { |     public @NonNull PlotId copy() { | ||||||
|         return this; |         return this; | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -18,8 +18,6 @@ | |||||||
|  */ |  */ | ||||||
| package com.plotsquared.core.plot.expiration; | package com.plotsquared.core.plot.expiration; | ||||||
|  |  | ||||||
| import com.google.inject.Inject; |  | ||||||
| import com.plotsquared.core.PlotPlatform; |  | ||||||
| import com.plotsquared.core.PlotSquared; | import com.plotsquared.core.PlotSquared; | ||||||
| import com.plotsquared.core.configuration.caption.Caption; | import com.plotsquared.core.configuration.caption.Caption; | ||||||
| import com.plotsquared.core.configuration.caption.Templates; | import com.plotsquared.core.configuration.caption.Templates; | ||||||
| @@ -62,10 +60,6 @@ import java.util.concurrent.ConcurrentLinkedDeque; | |||||||
|  |  | ||||||
| public class ExpireManager { | public class ExpireManager { | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * @deprecated Use {@link PlotPlatform#expireManager()} instead |  | ||||||
|      */ |  | ||||||
|     @Deprecated(forRemoval = true, since = "6.10.2") |  | ||||||
|     public static ExpireManager IMP; |     public static ExpireManager IMP; | ||||||
|     private final ConcurrentHashMap<UUID, Long> dates_cache; |     private final ConcurrentHashMap<UUID, Long> dates_cache; | ||||||
|     private final ConcurrentHashMap<UUID, Long> account_age_cache; |     private final ConcurrentHashMap<UUID, Long> account_age_cache; | ||||||
| @@ -77,7 +71,6 @@ public class ExpireManager { | |||||||
|      */ |      */ | ||||||
|     private int running; |     private int running; | ||||||
|  |  | ||||||
|     @Inject |  | ||||||
|     public ExpireManager(final @NonNull EventDispatcher eventDispatcher) { |     public ExpireManager(final @NonNull EventDispatcher eventDispatcher) { | ||||||
|         this.tasks = new ArrayDeque<>(); |         this.tasks = new ArrayDeque<>(); | ||||||
|         this.dates_cache = new ConcurrentHashMap<>(); |         this.dates_cache = new ConcurrentHashMap<>(); | ||||||
|   | |||||||
| @@ -18,7 +18,6 @@ | |||||||
|  */ |  */ | ||||||
| package com.plotsquared.core.plot.expiration; | package com.plotsquared.core.plot.expiration; | ||||||
|  |  | ||||||
| import com.plotsquared.core.PlotSquared; |  | ||||||
| import com.plotsquared.core.configuration.Settings; | import com.plotsquared.core.configuration.Settings; | ||||||
| import com.plotsquared.core.plot.Plot; | import com.plotsquared.core.plot.Plot; | ||||||
| import com.plotsquared.core.plot.PlotArea; | import com.plotsquared.core.plot.PlotArea; | ||||||
| @@ -73,9 +72,8 @@ public class ExpiryTask { | |||||||
|                         min = false; |                         min = false; | ||||||
|                         diff = plots.size() - settings.REQUIRED_PLOTS; |                         diff = plots.size() - settings.REQUIRED_PLOTS; | ||||||
|                     } |                     } | ||||||
|                     ExpireManager expireManager = PlotSquared.platform().expireManager(); |  | ||||||
|                     List<Long> entireList = |                     List<Long> entireList = | ||||||
|                             plots.stream().map(plot -> expireManager.getAge(plot, settings.DELETE_IF_OWNER_IS_UNKNOWN)) |                             plots.stream().map(plot -> ExpireManager.IMP.getAge(plot, settings.DELETE_IF_OWNER_IS_UNKNOWN)) | ||||||
|                                     .collect(Collectors.toList()); |                                     .collect(Collectors.toList()); | ||||||
|                     List<Long> top = new ArrayList<>(diff + 1); |                     List<Long> top = new ArrayList<>(diff + 1); | ||||||
|                     if (diff > 1000) { |                     if (diff > 1000) { | ||||||
|   | |||||||
| @@ -116,7 +116,7 @@ public class BlockArrayCacheScopedQueueCoordinator extends ScopedQueueCoordinato | |||||||
|         x += offsetX; |         x += offsetX; | ||||||
|         z += offsetZ; |         z += offsetZ; | ||||||
|         if (x >= scopeMinX && x < scopeMaxX && y >= minY && y <= maxY && z >= scopeMinZ && z < scopeMaxZ) { |         if (x >= scopeMinX && x < scopeMaxX && y >= minY && y <= maxY && z >= scopeMinZ && z < scopeMaxZ) { | ||||||
|             blockStates[y - minY][x - scopeMinX][z - scopeMinZ] = id.toImmutableState(); |             blockStates[y - minY][x][z] = id.toImmutableState(); | ||||||
|         } |         } | ||||||
|         return false; |         return false; | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -20,7 +20,6 @@ package com.plotsquared.core.util; | |||||||
|  |  | ||||||
| import com.google.common.eventbus.EventBus; | import com.google.common.eventbus.EventBus; | ||||||
| import com.intellectualsites.annotations.DoNotUse; | import com.intellectualsites.annotations.DoNotUse; | ||||||
| import com.plotsquared.core.PlotSquared; |  | ||||||
| import com.plotsquared.core.configuration.Settings; | import com.plotsquared.core.configuration.Settings; | ||||||
| import com.plotsquared.core.configuration.caption.TranslatableCaption; | import com.plotsquared.core.configuration.caption.TranslatableCaption; | ||||||
| import com.plotsquared.core.events.PlayerAutoPlotEvent; | import com.plotsquared.core.events.PlayerAutoPlotEvent; | ||||||
| @@ -60,6 +59,7 @@ import com.plotsquared.core.plot.Plot; | |||||||
| import com.plotsquared.core.plot.PlotArea; | import com.plotsquared.core.plot.PlotArea; | ||||||
| import com.plotsquared.core.plot.PlotId; | import com.plotsquared.core.plot.PlotId; | ||||||
| import com.plotsquared.core.plot.Rating; | import com.plotsquared.core.plot.Rating; | ||||||
|  | import com.plotsquared.core.plot.expiration.ExpireManager; | ||||||
| import com.plotsquared.core.plot.flag.PlotFlag; | import com.plotsquared.core.plot.flag.PlotFlag; | ||||||
| import com.plotsquared.core.plot.flag.implementations.DeviceInteractFlag; | import com.plotsquared.core.plot.flag.implementations.DeviceInteractFlag; | ||||||
| import com.plotsquared.core.plot.flag.implementations.MiscPlaceFlag; | import com.plotsquared.core.plot.flag.implementations.MiscPlaceFlag; | ||||||
| @@ -300,8 +300,8 @@ public class EventDispatcher { | |||||||
|         if (player == null) { |         if (player == null) { | ||||||
|             return; //possible future warning message to figure out where we are retrieving null |             return; //possible future warning message to figure out where we are retrieving null | ||||||
|         } |         } | ||||||
|         if (PlotSquared.platform().expireManager() != null) { |         if (ExpireManager.IMP != null) { | ||||||
|             PlotSquared.platform().expireManager().handleJoin(player); |             ExpireManager.IMP.handleJoin(player); | ||||||
|         } |         } | ||||||
|         if (this.worldEdit != null) { |         if (this.worldEdit != null) { | ||||||
|             if (player.getAttribute("worldedit")) { |             if (player.getAttribute("worldedit")) { | ||||||
|   | |||||||
| @@ -18,8 +18,8 @@ | |||||||
|  */ |  */ | ||||||
| package com.plotsquared.core.util.query; | package com.plotsquared.core.util.query; | ||||||
|  |  | ||||||
| import com.plotsquared.core.PlotSquared; |  | ||||||
| import com.plotsquared.core.plot.Plot; | import com.plotsquared.core.plot.Plot; | ||||||
|  | import com.plotsquared.core.plot.expiration.ExpireManager; | ||||||
|  |  | ||||||
| import java.util.Collection; | import java.util.Collection; | ||||||
|  |  | ||||||
| @@ -27,7 +27,7 @@ class ExpiredPlotProvider implements PlotProvider { | |||||||
|  |  | ||||||
|     @Override |     @Override | ||||||
|     public Collection<Plot> getPlots() { |     public Collection<Plot> getPlots() { | ||||||
|         return PlotSquared.platform().expireManager().getPendingExpired(); |         return ExpireManager.IMP.getPendingExpired(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -19,7 +19,7 @@ plugins { | |||||||
| } | } | ||||||
|  |  | ||||||
| group = "com.plotsquared" | group = "com.plotsquared" | ||||||
| version = "6.10.2" | version = "6.10.2-SNAPSHOT" | ||||||
|  |  | ||||||
| subprojects { | subprojects { | ||||||
|     group = rootProject.group |     group = rootProject.group | ||||||
|   | |||||||
| @@ -1,7 +1,8 @@ | |||||||
| [versions] | [versions] | ||||||
| # Platform expectations | # Platform expectations | ||||||
|  | paper = "1.18.1-R0.1-SNAPSHOT" | ||||||
| guice = "5.1.0" | guice = "5.1.0" | ||||||
| spotbugs = "4.7.3" | spotbugs = "4.7.2" | ||||||
|  |  | ||||||
| # Plugins | # Plugins | ||||||
| worldedit = "7.2.12" | worldedit = "7.2.12" | ||||||
| @@ -25,6 +26,9 @@ licenser = "0.6.1" | |||||||
| nexus = "1.1.0" | nexus = "1.1.0" | ||||||
|  |  | ||||||
| [libraries] | [libraries] | ||||||
|  | # Platform expectations | ||||||
|  | paper = { group = "io.papermc.paper", name = "paper-api", version.ref = "paper" } | ||||||
|  |  | ||||||
| # Platform expectations | # Platform expectations | ||||||
| guice = { group = "com.google.inject", name = "guice", version.ref = "guice" } | guice = { group = "com.google.inject", name = "guice", version.ref = "guice" } | ||||||
| guiceassistedinject = { group = "com.google.inject.extensions", name = "guice-assistedinject", version.ref = "guice" } | guiceassistedinject = { group = "com.google.inject.extensions", name = "guice-assistedinject", version.ref = "guice" } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user