mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-10-31 17:43:44 +01:00 
			
		
		
		
	Compare commits
	
		
			8 Commits
		
	
	
		
			update-gav
			...
			fix/avoid-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 07c70f31d4 | ||
|   | ae63d0724f | ||
|   | ed22b22e9c | ||
|   | 444ccda807 | ||
|   | db361cc420 | ||
| ![renovate[bot]](/assets/img/avatar_default.png)  | 079dc02cfe | ||
|   | e98791c865 | ||
|   | 7c3112f30f | 
							
								
								
									
										4
									
								
								.github/ISSUE_TEMPLATE/bug_report.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/ISSUE_TEMPLATE/bug_report.yml
									
									
									
									
										vendored
									
									
								
							| @@ -8,7 +8,7 @@ body: | |||||||
|       value: | |       value: | | ||||||
|         Thanks for taking the time to fill out this bug report for PlotSquared! Fill out the following form to your best ability to help us fix the problem. |         Thanks for taking the time to fill out this bug report for PlotSquared! Fill out the following form to your best ability to help us fix the problem. | ||||||
|         Only use this if you're absolutely sure that you found a bug and can reproduce it. For anything else, use: [our Discord server](https://discord.gg/intellectualsites) or [the wiki](https://intellectualsites.github.io/plotsquared-documentation/). |         Only use this if you're absolutely sure that you found a bug and can reproduce it. For anything else, use: [our Discord server](https://discord.gg/intellectualsites) or [the wiki](https://intellectualsites.github.io/plotsquared-documentation/). | ||||||
|         Do NOT use the public issue tracker to report security vulnerabilities! They are disclosed using [this](https://forms.gle/btgdRn9yhGtzEiGW8) form! |         Do NOT use the public issue tracker to report security vulnerabilities! They are disclosed using [this](https://github.com/IntellectualSites/PlotSquared/security/policy) GitHub form! | ||||||
|  |  | ||||||
|   - type: dropdown |   - type: dropdown | ||||||
|     attributes: |     attributes: | ||||||
| @@ -27,6 +27,8 @@ body: | |||||||
|       description: Which server version version you using? If your server version is not listed, it is not supported. Update to a supported version first. |       description: Which server version version you using? If your server version is not listed, it is not supported. Update to a supported version first. | ||||||
|       multiple: false |       multiple: false | ||||||
|       options: |       options: | ||||||
|  |         - '1.20' | ||||||
|  |         - '1.19.4' | ||||||
|         - '1.19.3' |         - '1.19.3' | ||||||
|         - '1.19.2' |         - '1.19.2' | ||||||
|         - '1.19.1' |         - '1.19.1' | ||||||
|   | |||||||
							
								
								
									
										5
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							| @@ -21,6 +21,11 @@ jobs: | |||||||
|     steps: |     steps: | ||||||
|       - name: Checkout repository |       - name: Checkout repository | ||||||
|         uses: actions/checkout@v3 |         uses: actions/checkout@v3 | ||||||
|  |       - name: Setup Java | ||||||
|  |         uses: actions/setup-java@v3 | ||||||
|  |         with: | ||||||
|  |           distribution: temurin | ||||||
|  |           java-version: 17 | ||||||
|       - name: Initialize CodeQL |       - name: Initialize CodeQL | ||||||
|         uses: github/codeql-action/init@v2 |         uses: github/codeql-action/init@v2 | ||||||
|         with: |         with: | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ repositories { | |||||||
| } | } | ||||||
|  |  | ||||||
| dependencies { | dependencies { | ||||||
|     api(projects.plotSquaredCore) |     api(projects.plotsquaredCore) | ||||||
|  |  | ||||||
|     // Metrics |     // Metrics | ||||||
|     implementation("org.bstats:bstats-bukkit") |     implementation("org.bstats:bstats-bukkit") | ||||||
| @@ -62,6 +62,7 @@ tasks.processResources { | |||||||
| } | } | ||||||
|  |  | ||||||
| tasks.named<ShadowJar>("shadowJar") { | tasks.named<ShadowJar>("shadowJar") { | ||||||
|  |     dependsOn(":plotsquared-core:shadowJar") | ||||||
|     dependencies { |     dependencies { | ||||||
|         exclude(dependency("org.checkerframework:")) |         exclude(dependency("org.checkerframework:")) | ||||||
|     } |     } | ||||||
| @@ -102,7 +103,7 @@ tasks { | |||||||
|         opt.links("https://jd.papermc.io/paper/1.19/") |         opt.links("https://jd.papermc.io/paper/1.19/") | ||||||
|         opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-bukkit/" + libs.worldeditBukkit.get().versionConstraint.toString()) |         opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-bukkit/" + libs.worldeditBukkit.get().versionConstraint.toString()) | ||||||
|         opt.links("https://intellectualsites.github.io/plotsquared-javadocs/core/") |         opt.links("https://intellectualsites.github.io/plotsquared-javadocs/core/") | ||||||
|         opt.links("https://jd.advntr.dev/api/4.12.0/") |         opt.links("https://jd.advntr.dev/api/4.14.0/") | ||||||
|         opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") |         opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") | ||||||
|         opt.links("https://checkerframework.org/api/") |         opt.links("https://checkerframework.org/api/") | ||||||
|         opt.isLinkSource = true |         opt.isLinkSource = true | ||||||
|   | |||||||
| @@ -37,6 +37,8 @@ import com.sk89q.worldedit.math.BlockVector2; | |||||||
| import org.apache.logging.log4j.LogManager; | import org.apache.logging.log4j.LogManager; | ||||||
| import org.apache.logging.log4j.Logger; | import org.apache.logging.log4j.Logger; | ||||||
| import org.bukkit.HeightMap; | import org.bukkit.HeightMap; | ||||||
|  | import org.bukkit.NamespacedKey; | ||||||
|  | import org.bukkit.Registry; | ||||||
| import org.bukkit.World; | import org.bukkit.World; | ||||||
| import org.bukkit.block.Biome; | import org.bukkit.block.Biome; | ||||||
| import org.bukkit.generator.BiomeProvider; | import org.bukkit.generator.BiomeProvider; | ||||||
| @@ -48,10 +50,14 @@ import org.jetbrains.annotations.NotNull; | |||||||
| import org.jetbrains.annotations.Nullable; | import org.jetbrains.annotations.Nullable; | ||||||
|  |  | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
|  | import java.util.Arrays; | ||||||
|  | import java.util.EnumSet; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| import java.util.Random; | import java.util.Random; | ||||||
| import java.util.Set; | import java.util.Set; | ||||||
|  |  | ||||||
|  | import static java.util.function.Predicate.not; | ||||||
|  |  | ||||||
| public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrapper<ChunkGenerator> { | public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrapper<ChunkGenerator> { | ||||||
|  |  | ||||||
|     private static final Logger LOGGER = LogManager.getLogger("PlotSquared/" + BukkitPlotGenerator.class.getSimpleName()); |     private static final Logger LOGGER = LogManager.getLogger("PlotSquared/" + BukkitPlotGenerator.class.getSimpleName()); | ||||||
| @@ -434,9 +440,16 @@ public class BukkitPlotGenerator extends ChunkGenerator implements GeneratorWrap | |||||||
|         private static final List<Biome> BIOMES; |         private static final List<Biome> BIOMES; | ||||||
|  |  | ||||||
|         static { |         static { | ||||||
|             ArrayList<Biome> biomes = new ArrayList<>(List.of(Biome.values())); |             Set<Biome> disabledBiomes = EnumSet.of(Biome.CUSTOM); | ||||||
|             biomes.remove(Biome.CUSTOM); |             if (PlotSquared.platform().serverVersion()[1] <= 19) { | ||||||
|             BIOMES = List.copyOf(biomes); |                 final Biome cherryGrove = Registry.BIOME.get(NamespacedKey.minecraft("cherry_grove")); | ||||||
|  |                 if (cherryGrove != null) { | ||||||
|  |                     disabledBiomes.add(cherryGrove); | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |             BIOMES = Arrays.stream(Biome.values()) | ||||||
|  |                     .filter(not(disabledBiomes::contains)) | ||||||
|  |                     .toList(); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         @Override |         @Override | ||||||
|   | |||||||
| @@ -68,8 +68,8 @@ tasks { | |||||||
|         val isRelease = if (rootProject.version.toString().endsWith("-SNAPSHOT")) "TODO" else rootProject.version.toString() |         val isRelease = if (rootProject.version.toString().endsWith("-SNAPSHOT")) "TODO" else rootProject.version.toString() | ||||||
|         val opt = options as StandardJavadocDocletOptions |         val opt = options as StandardJavadocDocletOptions | ||||||
|         opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-core/" + libs.worldeditCore.get().versionConstraint.toString()) |         opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-core/" + libs.worldeditCore.get().versionConstraint.toString()) | ||||||
|         opt.links("https://jd.advntr.dev/api/4.12.0/") |         opt.links("https://jd.advntr.dev/api/4.14.0/") | ||||||
|         opt.links("https://jd.advntr.dev/text-minimessage/4.12.0/") |         opt.links("https://jd.advntr.dev/text-minimessage/4.14.0/") | ||||||
|         opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") |         opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") | ||||||
|         opt.links("https://checkerframework.org/api/") |         opt.links("https://checkerframework.org/api/") | ||||||
|         opt.links("https://javadoc.io/doc/com.intellectualsites.informative-annotations/informative-annotations/latest/") |         opt.links("https://javadoc.io/doc/com.intellectualsites.informative-annotations/informative-annotations/latest/") | ||||||
|   | |||||||
| @@ -56,7 +56,7 @@ public class Music extends SubCommand { | |||||||
|             .asList("music_disc_13", "music_disc_cat", "music_disc_blocks", "music_disc_chirp", |             .asList("music_disc_13", "music_disc_cat", "music_disc_blocks", "music_disc_chirp", | ||||||
|                     "music_disc_far", "music_disc_mall", "music_disc_mellohi", "music_disc_stal", |                     "music_disc_far", "music_disc_mall", "music_disc_mellohi", "music_disc_stal", | ||||||
|                     "music_disc_strad", "music_disc_ward", "music_disc_11", "music_disc_wait", "music_disc_otherside", |                     "music_disc_strad", "music_disc_ward", "music_disc_11", "music_disc_wait", "music_disc_otherside", | ||||||
|                     "music_disc_pigstep", "music_disc_5" |                     "music_disc_pigstep", "music_disc_5", "music_disc_relic" | ||||||
|             ); |             ); | ||||||
|  |  | ||||||
|     private final InventoryUtil inventoryUtil; |     private final InventoryUtil inventoryUtil; | ||||||
|   | |||||||
| @@ -19,6 +19,7 @@ | |||||||
| package com.plotsquared.core.configuration.file; | package com.plotsquared.core.configuration.file; | ||||||
|  |  | ||||||
| import com.plotsquared.core.configuration.serialization.ConfigurationSerialization; | import com.plotsquared.core.configuration.serialization.ConfigurationSerialization; | ||||||
|  | import org.yaml.snakeyaml.LoaderOptions; | ||||||
| import org.yaml.snakeyaml.constructor.SafeConstructor; | import org.yaml.snakeyaml.constructor.SafeConstructor; | ||||||
| import org.yaml.snakeyaml.error.YAMLException; | import org.yaml.snakeyaml.error.YAMLException; | ||||||
| import org.yaml.snakeyaml.nodes.Node; | import org.yaml.snakeyaml.nodes.Node; | ||||||
| @@ -30,6 +31,7 @@ import java.util.Map; | |||||||
| public class YamlConstructor extends SafeConstructor { | public class YamlConstructor extends SafeConstructor { | ||||||
|  |  | ||||||
|     YamlConstructor() { |     YamlConstructor() { | ||||||
|  |         super(new LoaderOptions()); | ||||||
|         yamlConstructors.put(Tag.MAP, new ConstructCustomObject()); |         yamlConstructors.put(Tag.MAP, new ConstructCustomObject()); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -21,6 +21,7 @@ package com.plotsquared.core.configuration.file; | |||||||
| import com.plotsquared.core.configuration.ConfigurationSection; | import com.plotsquared.core.configuration.ConfigurationSection; | ||||||
| import com.plotsquared.core.configuration.serialization.ConfigurationSerializable; | import com.plotsquared.core.configuration.serialization.ConfigurationSerializable; | ||||||
| import com.plotsquared.core.configuration.serialization.ConfigurationSerialization; | import com.plotsquared.core.configuration.serialization.ConfigurationSerialization; | ||||||
|  | import org.yaml.snakeyaml.DumperOptions; | ||||||
| import org.yaml.snakeyaml.nodes.Node; | import org.yaml.snakeyaml.nodes.Node; | ||||||
| import org.yaml.snakeyaml.representer.Representer; | import org.yaml.snakeyaml.representer.Representer; | ||||||
|  |  | ||||||
| @@ -30,6 +31,7 @@ import java.util.Map; | |||||||
| class YamlRepresenter extends Representer { | class YamlRepresenter extends Representer { | ||||||
|  |  | ||||||
|     YamlRepresenter() { |     YamlRepresenter() { | ||||||
|  |         super(new DumperOptions()); | ||||||
|         this.multiRepresenters.put(ConfigurationSection.class, new RepresentConfigurationSection()); |         this.multiRepresenters.put(ConfigurationSection.class, new RepresentConfigurationSection()); | ||||||
|         this.multiRepresenters |         this.multiRepresenters | ||||||
|                 .put(ConfigurationSerializable.class, new RepresentConfigurationSerializable()); |                 .put(ConfigurationSerializable.class, new RepresentConfigurationSerializable()); | ||||||
|   | |||||||
| @@ -77,7 +77,7 @@ subprojects { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     dependencies { |     dependencies { | ||||||
|         implementation(platform("com.intellectualsites.bom:bom-newest:1.27")) |         implementation(platform("com.intellectualsites.bom:bom-newest:1.29")) | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     dependencies { |     dependencies { | ||||||
| @@ -210,7 +210,7 @@ subprojects { | |||||||
| } | } | ||||||
|  |  | ||||||
| nexusPublishing { | nexusPublishing { | ||||||
|     repositories { |     this.repositories { | ||||||
|         sonatype { |         sonatype { | ||||||
|             nexusUrl.set(URI.create("https://s01.oss.sonatype.org/service/local/")) |             nexusUrl.set(URI.create("https://s01.oss.sonatype.org/service/local/")) | ||||||
|             snapshotRepositoryUrl.set(URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")) |             snapshotRepositoryUrl.set(URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")) | ||||||
| @@ -222,12 +222,12 @@ tasks.getByName<Jar>("jar") { | |||||||
|     enabled = false |     enabled = false | ||||||
| } | } | ||||||
|  |  | ||||||
| val supportedVersions = listOf("1.16.5", "1.17", "1.17.1", "1.18.2", "1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4") | val supportedVersions = listOf("1.16.5", "1.17", "1.17.1", "1.18.2", "1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4", "1.20") | ||||||
| tasks { | tasks { | ||||||
|     supportedVersions.forEach { |     supportedVersions.forEach { | ||||||
|         register<RunServer>("runServer-$it") { |         register<RunServer>("runServer-$it") { | ||||||
|             minecraftVersion(it) |             minecraftVersion(it) | ||||||
|             pluginJars(*project(":PlotSquared-Bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile } |             pluginJars(*project(":plotsquared-bukkit").getTasksByName("shadowJar", false).map { (it as Jar).archiveFile } | ||||||
|                     .toTypedArray()) |                     .toTypedArray()) | ||||||
|             jvmArgs("-DPaper.IgnoreJavaVersion=true", "-Dcom.mojang.eula.agree=true") |             jvmArgs("-DPaper.IgnoreJavaVersion=true", "-Dcom.mojang.eula.agree=true") | ||||||
|             group = "run paper" |             group = "run paper" | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ spotbugs = "4.7.3" | |||||||
| worldedit = "7.2.14" | worldedit = "7.2.14" | ||||||
| placeholderapi = "2.11.3" | placeholderapi = "2.11.3" | ||||||
| luckperms = "5.4" | luckperms = "5.4" | ||||||
| essentialsx = "2.19.7" | essentialsx = "2.20.0" | ||||||
| mvdwapi = "3.1.1" | mvdwapi = "3.1.1" | ||||||
|  |  | ||||||
| # Third party | # Third party | ||||||
| @@ -18,7 +18,7 @@ arkitektonika = "2.1.2" | |||||||
| squirrelid = "0.3.2" | squirrelid = "0.3.2" | ||||||
|  |  | ||||||
| # Gradle plugins | # Gradle plugins | ||||||
| shadow = "7.1.2" | shadow = "8.1.1" | ||||||
| grgit = "4.1.1" | grgit = "4.1.1" | ||||||
| spotless = "6.19.0" | spotless = "6.19.0" | ||||||
| nexus = "1.3.0" | nexus = "1.3.0" | ||||||
|   | |||||||
							
								
								
									
										
											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 | distributionBase=GRADLE_USER_HOME | ||||||
| distributionPath=wrapper/dists | 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 | networkTimeout=10000 | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
| zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||||
|   | |||||||
							
								
								
									
										11
									
								
								gradlew
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								gradlew
									
									
									
									
										vendored
									
									
								
							| @@ -85,9 +85,6 @@ done | |||||||
| APP_BASE_NAME=${0##*/} | APP_BASE_NAME=${0##*/} | ||||||
| APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit | 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. | # Use the maximum available, or set MAX_FD != -1 to use that value. | ||||||
| MAX_FD=maximum | MAX_FD=maximum | ||||||
|  |  | ||||||
| @@ -144,7 +141,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then | |||||||
|     case $MAX_FD in #( |     case $MAX_FD in #( | ||||||
|       max*) |       max*) | ||||||
|         # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. |         # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. | ||||||
|         # shellcheck disable=SC3045  |         # shellcheck disable=SC3045 | ||||||
|         MAX_FD=$( ulimit -H -n ) || |         MAX_FD=$( ulimit -H -n ) || | ||||||
|             warn "Could not query maximum file descriptor limit" |             warn "Could not query maximum file descriptor limit" | ||||||
|     esac |     esac | ||||||
| @@ -152,7 +149,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then | |||||||
|       '' | soft) :;; #( |       '' | soft) :;; #( | ||||||
|       *) |       *) | ||||||
|         # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. |         # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. | ||||||
|         # shellcheck disable=SC3045  |         # shellcheck disable=SC3045 | ||||||
|         ulimit -n "$MAX_FD" || |         ulimit -n "$MAX_FD" || | ||||||
|             warn "Could not set maximum file descriptor limit to $MAX_FD" |             warn "Could not set maximum file descriptor limit to $MAX_FD" | ||||||
|     esac |     esac | ||||||
| @@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then | |||||||
|     done |     done | ||||||
| fi | 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; | # Collect all arguments for the java command; | ||||||
| #   * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of | #   * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of | ||||||
| #     shell script including quotes and variable substitutions, so put them in | #     shell script including quotes and variable substitutions, so put them in | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ rootProject.name = "PlotSquared" | |||||||
|  |  | ||||||
| include("Core", "Bukkit") | include("Core", "Bukkit") | ||||||
|  |  | ||||||
| project(":Core").name = "PlotSquared-Core" | project(":Core").name = "plotsquared-core" | ||||||
| project(":Bukkit").name = "PlotSquared-Bukkit" | project(":Bukkit").name = "plotsquared-bukkit" | ||||||
|  |  | ||||||
| enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") | enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user