mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-31 17:43:44 +01:00 
			
		
		
		
	Compare commits
	
		
			8 Commits
		
	
	
		
			fix/v6/shu
			...
			renovate/c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | e4948376e7 | ||
|   | 75f31c5bf6 | ||
|   | 954c813cef | ||
|   | 05e055e9cf | ||
|   | 2ea21c150f | ||
|   | c2fd4edad5 | ||
|   | 78b8696778 | ||
|   | e653961385 | 
							
								
								
									
										2
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -12,7 +12,7 @@ jobs: | |||||||
|       - name: Validate Gradle Wrapper" |       - name: Validate Gradle Wrapper" | ||||||
|         uses: gradle/wrapper-validation-action@v1.0.4 |         uses: gradle/wrapper-validation-action@v1.0.4 | ||||||
|       - name: Setup Java |       - name: Setup Java | ||||||
|         uses: actions/setup-java@v2.5.0 |         uses: actions/setup-java@v3.0.0 | ||||||
|         with: |         with: | ||||||
|           distribution: temurin |           distribution: temurin | ||||||
|           java-version: 17 |           java-version: 17 | ||||||
|   | |||||||
							
								
								
									
										37
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | |||||||
|  | name: "CodeQL" | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     branches: [ v6 ] | ||||||
|  |   pull_request: | ||||||
|  |     # The branches below must be a subset of the branches above | ||||||
|  |     branches: [ v6 ] | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   analyze: | ||||||
|  |     name: Analyze | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     permissions: | ||||||
|  |       actions: read | ||||||
|  |       contents: read | ||||||
|  |       security-events: write | ||||||
|  |  | ||||||
|  |     strategy: | ||||||
|  |       fail-fast: false | ||||||
|  |       matrix: | ||||||
|  |         language: [ 'java' ] | ||||||
|  |  | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout repository | ||||||
|  |         uses: actions/checkout@v2 | ||||||
|  |  | ||||||
|  |       - name: Initialize CodeQL | ||||||
|  |         uses: github/codeql-action/init@v1 | ||||||
|  |         with: | ||||||
|  |           languages: ${{ matrix.language }} | ||||||
|  |  | ||||||
|  |       - name: Autobuild | ||||||
|  |         uses: github/codeql-action/autobuild@v1 | ||||||
|  |  | ||||||
|  |       - name: Perform CodeQL Analysis | ||||||
|  |         uses: github/codeql-action/analyze@v1 | ||||||
							
								
								
									
										20
									
								
								.github/workflows/rebase.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/rebase.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,20 +0,0 @@ | |||||||
| name: Rebase Pull Request |  | ||||||
| on: |  | ||||||
|   issue_comment: |  | ||||||
|     types: [created] |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   rebase: |  | ||||||
|     name: Rebase |  | ||||||
|     if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') && github.event.comment.author_association == 'MEMBER' |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     steps: |  | ||||||
|       - name: Checkout Repository |  | ||||||
|         uses: actions/checkout@v2.4.0 |  | ||||||
|         with: |  | ||||||
|           token: ${{ secrets.REBASE_TOKEN }} |  | ||||||
|           fetch-depth: 0 |  | ||||||
|       - name: Automatic Rebase |  | ||||||
|         uses: cirrus-actions/rebase@1.5 |  | ||||||
|         env: |  | ||||||
|           GITHUB_TOKEN: ${{ secrets.REBASE_TOKEN }} |  | ||||||
| @@ -36,6 +36,7 @@ import com.plotsquared.core.plot.flag.implementations.DoneFlag; | |||||||
| import io.papermc.lib.PaperLib; | import io.papermc.lib.PaperLib; | ||||||
| import org.bukkit.Chunk; | import org.bukkit.Chunk; | ||||||
| import org.bukkit.World; | import org.bukkit.World; | ||||||
|  | import org.bukkit.block.Block; | ||||||
| import org.bukkit.entity.ArmorStand; | import org.bukkit.entity.ArmorStand; | ||||||
| import org.bukkit.entity.Entity; | import org.bukkit.entity.Entity; | ||||||
| import org.bukkit.entity.EntityType; | import org.bukkit.entity.EntityType; | ||||||
| @@ -191,8 +192,32 @@ public class EntitySpawnListener implements Listener { | |||||||
|  |  | ||||||
|     @EventHandler |     @EventHandler | ||||||
|     public void onTeleport(EntityTeleportEvent event) { |     public void onTeleport(EntityTeleportEvent event) { | ||||||
|         Entity ent = event.getEntity(); |         Entity entity = event.getEntity(); | ||||||
|         if (ent instanceof Vehicle || ent instanceof ArmorStand) { |         Entity fromLocation = event.getEntity(); | ||||||
|  |         Block toLocation = event.getTo().getBlock(); | ||||||
|  |         final Location fromLocLocation = BukkitUtil.adapt(fromLocation.getLocation()); | ||||||
|  |         final PlotArea fromArea = fromLocLocation.getPlotArea(); | ||||||
|  |         Location toLocLocation = BukkitUtil.adapt(toLocation.getLocation()); | ||||||
|  |         PlotArea toArea = toLocLocation.getPlotArea(); | ||||||
|  |  | ||||||
|  |         if (toArea == null) { | ||||||
|  |             if (fromLocation.getType() == EntityType.SHULKER && fromArea != null) { | ||||||
|  |                 event.setCancelled(true); | ||||||
|  |             } | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|  |         Plot toPlot = toArea.getOwnedPlot(toLocLocation); | ||||||
|  |         if (fromLocation.getType() == EntityType.SHULKER && fromArea != null) { | ||||||
|  |             final Plot fromPlot = fromArea.getOwnedPlot(fromLocLocation); | ||||||
|  |  | ||||||
|  |             if (fromPlot != null || toPlot != null) { | ||||||
|  |                 if ((fromPlot == null || !fromPlot.equals(toPlot)) && (toPlot == null || !toPlot.equals(fromPlot))) { | ||||||
|  |                     event.setCancelled(true); | ||||||
|  |                     return; | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |         if (entity instanceof Vehicle || entity instanceof ArmorStand) { | ||||||
|             testNether(event.getEntity()); |             testNether(event.getEntity()); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -83,34 +83,31 @@ public class BukkitWorld implements World<org.bukkit.World> { | |||||||
|         return this.world.getName(); |         return this.world.getName(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|     public boolean equals(final Object o) { |     public boolean equals(final Object o) { | ||||||
|         if (o == this) { |         if (this == o) { | ||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|         if (!(o instanceof final BukkitWorld other)) { |         if (o == null || getClass() != o.getClass()) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|         if (!other.canEqual(this)) { |         final BukkitWorld that = (BukkitWorld) o; | ||||||
|             return false; |         return world.equals(that.world); | ||||||
|         } |  | ||||||
|         if (!Objects.equals(this.world, other.world)) { |  | ||||||
|             return false; |  | ||||||
|         } |  | ||||||
|         return true; |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public int hashCode() { | ||||||
|  |         return world.hashCode(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * @deprecated This method is not meant to be invoked or overridden, with no replacement. | ||||||
|  |      */ | ||||||
|  |     @Deprecated(forRemoval = true, since = "TODO") | ||||||
|     protected boolean canEqual(final Object other) { |     protected boolean canEqual(final Object other) { | ||||||
|         return other instanceof BukkitWorld; |         return other instanceof BukkitWorld; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public int hashCode() { |  | ||||||
|         final int PRIME = 59; |  | ||||||
|         int result = 1; |  | ||||||
|         final Object $world = this.world; |  | ||||||
|         result = result * PRIME + ($world == null ? 43 : $world.hashCode()); |  | ||||||
|         return result; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     public String toString() { |     public String toString() { | ||||||
|         return "BukkitWorld(world=" + this.world + ")"; |         return "BukkitWorld(world=" + this.world + ")"; | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -105,31 +105,29 @@ public abstract class PlotWorld { | |||||||
|         return this.world; |         return this.world; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|     public boolean equals(final Object o) { |     public boolean equals(final Object o) { | ||||||
|         if (o == this) { |         if (this == o) { | ||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|         if (!(o instanceof final PlotWorld other)) { |         if (o == null || getClass() != o.getClass()) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|         if (!other.canEqual(this)) { |         final PlotWorld plotWorld = (PlotWorld) o; | ||||||
|             return false; |         return world.equals(plotWorld.world); | ||||||
|         } |  | ||||||
|         final Object this$world = this.getWorld(); |  | ||||||
|         final Object other$world = other.getWorld(); |  | ||||||
|         return Objects.equals(this$world, other$world); |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public int hashCode() { | ||||||
|  |         return world.hashCode(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * @deprecated This method is not meant to be invoked or overridden, with no replacement. | ||||||
|  |      */ | ||||||
|  |     @Deprecated(forRemoval = true, since = "TODO") | ||||||
|     protected boolean canEqual(final Object other) { |     protected boolean canEqual(final Object other) { | ||||||
|         return other instanceof PlotWorld; |         return other instanceof PlotWorld; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public int hashCode() { |  | ||||||
|         final int PRIME = 59; |  | ||||||
|         int result = 1; |  | ||||||
|         final Object $world = this.getWorld(); |  | ||||||
|         result = result * PRIME + ($world == null ? 43 : $world.hashCode()); |  | ||||||
|         return result; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -371,33 +371,31 @@ public class FlagContainer { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|     public boolean equals(final Object o) { |     public boolean equals(final Object o) { | ||||||
|         if (o == this) { |         if (this == o) { | ||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|         if (!(o instanceof final FlagContainer other)) { |         if (o == null || getClass() != o.getClass()) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|         if (!other.canEqual(this)) { |         final FlagContainer that = (FlagContainer) o; | ||||||
|             return false; |         return flagMap.equals(that.flagMap); | ||||||
|         } |  | ||||||
|         final Object this$flagMap = this.getFlagMap(); |  | ||||||
|         final Object other$flagMap = other.getFlagMap(); |  | ||||||
|         return Objects.equals(this$flagMap, other$flagMap); |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public int hashCode() { | ||||||
|  |         return flagMap.hashCode(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * @deprecated This method is not meant to be invoked or overridden, with no replacement. | ||||||
|  |      */ | ||||||
|  |     @Deprecated(forRemoval = true, since = "TODO") | ||||||
|     protected boolean canEqual(final Object other) { |     protected boolean canEqual(final Object other) { | ||||||
|         return other instanceof FlagContainer; |         return other instanceof FlagContainer; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public int hashCode() { |  | ||||||
|         final int PRIME = 59; |  | ||||||
|         int result = 1; |  | ||||||
|         final Object $flagMap = this.getFlagMap(); |  | ||||||
|         result = result * PRIME + ($flagMap == null ? 43 : $flagMap.hashCode()); |  | ||||||
|         return result; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * Update event types used in {@link PlotFlagUpdateHandler}. |      * Update event types used in {@link PlotFlagUpdateHandler}. | ||||||
|      */ |      */ | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import org.checkerframework.checker.nullness.qual.NonNull; | |||||||
|  |  | ||||||
| import java.util.Collection; | import java.util.Collection; | ||||||
| import java.util.Collections; | import java.util.Collections; | ||||||
|  | import java.util.Objects; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * A plot flag is any property that can be assigned |  * A plot flag is any property that can be assigned | ||||||
| @@ -200,34 +201,30 @@ public abstract class PlotFlag<T, F extends PlotFlag<T, F>> { | |||||||
|         return Collections.emptyList(); |         return Collections.emptyList(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|     public boolean equals(final Object o) { |     public boolean equals(final Object o) { | ||||||
|         if (o == this) { |         if (this == o) { | ||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|         if (!(o instanceof final PlotFlag<?, ?> other)) { |         if (o == null || getClass() != o.getClass()) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|         if (!other.canEqual(this)) { |         final PlotFlag<?, ?> plotFlag = (PlotFlag<?, ?>) o; | ||||||
|             return false; |         return value.equals(plotFlag.value); | ||||||
|         } |  | ||||||
|         final Object this$value = this.getValue(); |  | ||||||
|         final Object other$value = other.getValue(); |  | ||||||
|         if (this$value == null ? other$value != null : !this$value.equals(other$value)) { |  | ||||||
|             return false; |  | ||||||
|         } |  | ||||||
|         return true; |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public int hashCode() { | ||||||
|  |         return value.hashCode(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * @deprecated This method is not meant to be invoked or overridden, with no replacement. | ||||||
|  |      */ | ||||||
|  |     @Deprecated(forRemoval = true, since = "TODO") | ||||||
|     protected boolean canEqual(final Object other) { |     protected boolean canEqual(final Object other) { | ||||||
|         return other instanceof PlotFlag; |         return other instanceof PlotFlag; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public int hashCode() { |  | ||||||
|         final int PRIME = 59; |  | ||||||
|         int result = 1; |  | ||||||
|         final Object $value = this.getValue(); |  | ||||||
|         result = result * PRIME + ($value == null ? 43 : $value.hashCode()); |  | ||||||
|         return result; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -51,38 +51,29 @@ public class UUIDMapping { | |||||||
|         return this.uuid; |         return this.uuid; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|     public boolean equals(final Object o) { |     public boolean equals(final Object o) { | ||||||
|         if (o == this) { |         if (this == o) { | ||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|         if (!(o instanceof final UUIDMapping other)) { |         if (o == null || getClass() != o.getClass()) { | ||||||
|             return false; |             return false; | ||||||
|         } |         } | ||||||
|         if (!other.canEqual(this)) { |         final UUIDMapping that = (UUIDMapping) o; | ||||||
|             return false; |         return uuid.equals(that.uuid) && username.equals(that.username); | ||||||
|         } |  | ||||||
|         final Object this$uuid = this.getUuid(); |  | ||||||
|         final Object other$uuid = other.getUuid(); |  | ||||||
|         if (!Objects.equals(this$uuid, other$uuid)) { |  | ||||||
|             return false; |  | ||||||
|         } |  | ||||||
|         final Object this$username = this.getUsername(); |  | ||||||
|         final Object other$username = other.getUsername(); |  | ||||||
|         return Objects.equals(this$username, other$username); |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     @Override | ||||||
|  |     public int hashCode() { | ||||||
|  |         return Objects.hash(uuid, username); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * @deprecated This method is not meant to be invoked or overridden, with no replacement. | ||||||
|  |      */ | ||||||
|  |     @Deprecated(forRemoval = true, since = "TODO") | ||||||
|     protected boolean canEqual(final Object other) { |     protected boolean canEqual(final Object other) { | ||||||
|         return other instanceof UUIDMapping; |         return other instanceof UUIDMapping; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public int hashCode() { |  | ||||||
|         final int PRIME = 59; |  | ||||||
|         int result = 1; |  | ||||||
|         final Object $uuid = this.getUuid(); |  | ||||||
|         result = result * PRIME + $uuid.hashCode(); |  | ||||||
|         final Object $username = this.getUsername(); |  | ||||||
|         result = result * PRIME + $username.hashCode(); |  | ||||||
|         return result; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ plugins { | |||||||
|     idea |     idea | ||||||
| } | } | ||||||
|  |  | ||||||
| version = "6.5.1-SNAPSHOT" | version = "6.5.2-SNAPSHOT" | ||||||
|  |  | ||||||
| allprojects { | allprojects { | ||||||
|     group = "com.plotsquared" |     group = "com.plotsquared" | ||||||
|   | |||||||
| @@ -28,7 +28,7 @@ mvdwapi = "3.1.1" | |||||||
| # Third party | # Third party | ||||||
| prtree = "2.0.0" | prtree = "2.0.0" | ||||||
| aopalliance = "1.0" | aopalliance = "1.0" | ||||||
| cloud-services = "1.6.1" | cloud-services = "1.6.2" | ||||||
| arkitektonika = "2.1.1" | arkitektonika = "2.1.1" | ||||||
| paster = "1.1.4" | paster = "1.1.4" | ||||||
| bstats = "3.0.0" | bstats = "3.0.0" | ||||||
|   | |||||||
							
								
								
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -5,5 +5,4 @@ include("Core", "Bukkit") | |||||||
| project(":Core").name = "PlotSquared-Core" | project(":Core").name = "PlotSquared-Core" | ||||||
| project(":Bukkit").name = "PlotSquared-Bukkit" | project(":Bukkit").name = "PlotSquared-Bukkit" | ||||||
|  |  | ||||||
| enableFeaturePreview("VERSION_CATALOGS") |  | ||||||
| enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") | enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user