mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-31 17:43:44 +01:00 
			
		
		
		
	Compare commits
	
		
			7 Commits
		
	
	
		
			fix/stop-i
			...
			feature/v7
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 3796072c3a | ||
|   | 7c3112f30f | ||
| ![renovate[bot]](/assets/img/avatar_default.png)  | c01f5f5c7d | ||
| ![renovate[bot]](/assets/img/avatar_default.png)  | 95caa19505 | ||
|   | b8055201df | ||
|   | 81daefae4a | ||
|   | 02437a8c72 | 
							
								
								
									
										5
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							| @@ -21,6 +21,11 @@ jobs: | ||||
|     steps: | ||||
|       - name: Checkout repository | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Setup Java | ||||
|         uses: actions/setup-java@v3 | ||||
|         with: | ||||
|           distribution: temurin | ||||
|           java-version: 17 | ||||
|       - name: Initialize CodeQL | ||||
|         uses: github/codeql-action/init@v2 | ||||
|         with: | ||||
|   | ||||
| @@ -62,6 +62,7 @@ tasks.processResources { | ||||
| } | ||||
|  | ||||
| tasks.named<ShadowJar>("shadowJar") { | ||||
|     dependsOn(":PlotSquared-Core:shadowJar") | ||||
|     dependencies { | ||||
|         exclude(dependency("org.checkerframework:")) | ||||
|     } | ||||
|   | ||||
| @@ -296,10 +296,13 @@ public class Auto extends SubCommand { | ||||
|         } | ||||
|         if (this.econHandler != null && plotarea.useEconomy()) { | ||||
|             PlotExpression costExp = plotarea.getPrices().get("claim"); | ||||
|             PlotExpression mergeCostExp = plotarea.getPrices().get("merge"); | ||||
|             int size = sizeX * sizeZ; | ||||
|             double mergeCost = size > 1 && mergeCostExp == null ? 0d : mergeCostExp.evaluate(size); | ||||
|             double cost = costExp.evaluate(Settings.Limit.GLOBAL ? | ||||
|                     player.getPlotCount() : | ||||
|                     player.getPlotCount(plotarea.getWorldName())); | ||||
|             cost = (sizeX * sizeZ) * cost; | ||||
|             cost = size * cost + mergeCost; | ||||
|             if (cost > 0d) { | ||||
|                 if (!this.econHandler.isSupported()) { | ||||
|                     player.sendMessage(TranslatableCaption.of("economy.vault_or_consumer_null")); | ||||
|   | ||||
| @@ -109,7 +109,7 @@ public class Merge extends SubCommand { | ||||
|                 } | ||||
|             } | ||||
|             if (direction == null && (args[0].equalsIgnoreCase("all") || args[0] | ||||
|                     .equalsIgnoreCase("auto"))) { | ||||
|                     .equalsIgnoreCase("auto")) && player.hasPermission(Permission.PERMISSION_MERGE_ALL)) { | ||||
|                 direction = Direction.ALL; | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -379,10 +379,11 @@ public class ClassicPlotManager extends SquarePlotManager { | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         int yStart = classicPlotWorld.getMinBuildHeight() + (classicPlotWorld.PLOT_BEDROCK ? 1 : 0); | ||||
|         if (!plot.isMerged(Direction.NORTH)) { | ||||
|             int z = bot.getZ(); | ||||
|             for (int x = bot.getX(); x < top.getX(); x++) { | ||||
|                 for (int y = classicPlotWorld.getMinBuildHeight(); y <= classicPlotWorld.WALL_HEIGHT; y++) { | ||||
|                 for (int y = yStart; y <= classicPlotWorld.WALL_HEIGHT; y++) { | ||||
|                     queue.setBlock(x, y, z, blocks); | ||||
|                 } | ||||
|             } | ||||
| @@ -390,7 +391,7 @@ public class ClassicPlotManager extends SquarePlotManager { | ||||
|         if (!plot.isMerged(Direction.WEST)) { | ||||
|             int x = bot.getX(); | ||||
|             for (int z = bot.getZ(); z < top.getZ(); z++) { | ||||
|                 for (int y = classicPlotWorld.getMinBuildHeight(); y <= classicPlotWorld.WALL_HEIGHT; y++) { | ||||
|                 for (int y = yStart; y <= classicPlotWorld.WALL_HEIGHT; y++) { | ||||
|                     queue.setBlock(x, y, z, blocks); | ||||
|                 } | ||||
|             } | ||||
| @@ -398,7 +399,7 @@ public class ClassicPlotManager extends SquarePlotManager { | ||||
|         if (!plot.isMerged(Direction.SOUTH)) { | ||||
|             int z = top.getZ(); | ||||
|             for (int x = bot.getX(); x < top.getX() + (plot.isMerged(Direction.EAST) ? 0 : 1); x++) { | ||||
|                 for (int y = classicPlotWorld.getMinBuildHeight(); y <= classicPlotWorld.WALL_HEIGHT; y++) { | ||||
|                 for (int y = yStart; y <= classicPlotWorld.WALL_HEIGHT; y++) { | ||||
|                     queue.setBlock(x, y, z, blocks); | ||||
|                 } | ||||
|             } | ||||
| @@ -406,7 +407,7 @@ public class ClassicPlotManager extends SquarePlotManager { | ||||
|         if (!plot.isMerged(Direction.EAST)) { | ||||
|             int x = top.getX(); | ||||
|             for (int z = bot.getZ(); z < top.getZ() + (plot.isMerged(Direction.SOUTH) ? 0 : 1); z++) { | ||||
|                 for (int y = classicPlotWorld.getMinBuildHeight(); y <= classicPlotWorld.WALL_HEIGHT; y++) { | ||||
|                 for (int y = yStart; y <= classicPlotWorld.WALL_HEIGHT; y++) { | ||||
|                     queue.setBlock(x, y, z, blocks); | ||||
|                 } | ||||
|             } | ||||
|   | ||||
| @@ -45,6 +45,7 @@ public enum Permission implements ComponentLike { | ||||
|     PERMISSION_ADMIN_ENTRY_FORCEFIELD("plots.admin.entry.forcefield"), | ||||
|     PERMISSION_ADMIN_COMMANDS_CHATSPY("plots.admin.command.chatspy"), | ||||
|     PERMISSION_MERGE("plots.merge"), | ||||
|     PERMISSION_MERGE_ALL("plots.merge.all"), | ||||
|     PERMISSION_MERGE_OTHER("plots.merge.other"), | ||||
|     PERMISSION_MERGE_KEEP_ROAD("plots.merge.keeproad"), | ||||
|     PERMISSION_ADMIN_CAPS_OTHER("plots.admin.caps.other"), | ||||
|   | ||||
| @@ -20,7 +20,6 @@ package com.plotsquared.core.plot; | ||||
|  | ||||
| import com.google.common.collect.ImmutableSet; | ||||
| import com.google.common.collect.Lists; | ||||
| import com.google.common.collect.Sets; | ||||
| import com.google.inject.Inject; | ||||
| import com.plotsquared.core.PlotSquared; | ||||
| import com.plotsquared.core.command.Like; | ||||
| @@ -2418,7 +2417,6 @@ public class Plot { | ||||
|         if (!this.isMerged()) { | ||||
|             Location pos1 = this.getBottomAbs().withY(getArea().getMinBuildHeight()); | ||||
|             Location pos2 = this.getTopAbs().withY(getArea().getMaxBuildHeight()); | ||||
|             this.connectedCache = Sets.newHashSet(this); | ||||
|             CuboidRegion rg = new CuboidRegion(pos1.getBlockVector3(), pos2.getBlockVector3()); | ||||
|             return Collections.singleton(rg); | ||||
|         } | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| [versions] | ||||
| # Platform expectations | ||||
| guice = "5.1.0" | ||||
| guice = "7.0.0" | ||||
| spotbugs = "4.7.3" | ||||
|  | ||||
| # Plugins | ||||
| @@ -18,9 +18,9 @@ arkitektonika = "2.1.2" | ||||
| squirrelid = "0.3.2" | ||||
|  | ||||
| # Gradle plugins | ||||
| shadow = "7.1.2" | ||||
| shadow = "8.1.1" | ||||
| grgit = "4.1.1" | ||||
| spotless = "6.18.0" | ||||
| spotless = "6.19.0" | ||||
| nexus = "1.3.0" | ||||
|  | ||||
| [libraries] | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							| @@ -1,6 +1,6 @@ | ||||
| distributionBase=GRADLE_USER_HOME | ||||
| distributionPath=wrapper/dists | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip | ||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||||
| networkTimeout=10000 | ||||
| zipStoreBase=GRADLE_USER_HOME | ||||
| zipStorePath=wrapper/dists | ||||
|   | ||||
							
								
								
									
										7
									
								
								gradlew
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								gradlew
									
									
									
									
										vendored
									
									
								
							| @@ -85,9 +85,6 @@ done | ||||
| APP_BASE_NAME=${0##*/} | ||||
| APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit | ||||
|  | ||||
| # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | ||||
| DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' | ||||
|  | ||||
| # Use the maximum available, or set MAX_FD != -1 to use that value. | ||||
| MAX_FD=maximum | ||||
|  | ||||
| @@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then | ||||
|     done | ||||
| fi | ||||
|  | ||||
|  | ||||
| # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | ||||
| DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' | ||||
|  | ||||
| # Collect all arguments for the java command; | ||||
| #   * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of | ||||
| #     shell script including quotes and variable substitutions, so put them in | ||||
|   | ||||
		Reference in New Issue
	
	Block a user