From d9735212a8fdae7c0878ae2e5acbfd8359bb58b2 Mon Sep 17 00:00:00 2001 From: jmp Date: Sat, 31 Oct 2020 20:08:42 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Specify=20UTF-8=20encoding=20in=20b?= =?UTF-8?q?uild.gradle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 3 +++ .../minecraft/extras/MinecraftExceptionHandler.java | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 1ee49b10..37e6f67a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,5 @@ +import java.nio.charset.StandardCharsets + buildscript { repositories { mavenCentral() @@ -84,6 +86,7 @@ subprojects { "CatchAndPrintStackTrace" ) } + options.encoding(StandardCharsets.UTF_8.name()) } repositories { diff --git a/cloud-minecraft/cloud-minecraft-extras/src/main/java/cloud/commandframework/minecraft/extras/MinecraftExceptionHandler.java b/cloud-minecraft/cloud-minecraft-extras/src/main/java/cloud/commandframework/minecraft/extras/MinecraftExceptionHandler.java index d1527cb4..113f0005 100644 --- a/cloud-minecraft/cloud-minecraft-extras/src/main/java/cloud/commandframework/minecraft/extras/MinecraftExceptionHandler.java +++ b/cloud-minecraft/cloud-minecraft-extras/src/main/java/cloud/commandframework/minecraft/extras/MinecraftExceptionHandler.java @@ -245,19 +245,19 @@ public final class MinecraftExceptionHandler { */ public enum ExceptionType { /** - * The input does not correspond to any known command + * The input does not correspond to any known command ({@link InvalidSyntaxException}) */ INVALID_SYNTAX, /** - * The sender is not of the right type + * The sender is not of the right type ({@link InvalidCommandSenderException}) */ INVALID_SENDER, /** - * The sender does not have permission to execute the command + * The sender does not have permission to execute the command (@{@link NoPermissionException}) */ NO_PERMISSION, /** - * An argument failed to parse + * An argument failed to parse ({@link ArgumentParseException}) */ ARGUMENT_PARSING }