diff --git a/checkstyle.xml b/checkstyle.xml
new file mode 100644
index 0000000..941c004
--- /dev/null
+++ b/checkstyle.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 5f3e183..478664b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,55 +1,54 @@
- 4.0.0
- pw.kaboom
- CommandSpy
- master
+ 4.0.0
+ pw.kaboom
+ CommandSpy
+ master
-
- 1.8
- 1.8
- true
- UTF-8
-
+
+ 1.8
+ 1.8
+ true
+ UTF-8
+
-
-
- com.destroystokyo.paper
- paper-api
- 1.13.2-R0.1-SNAPSHOT
-
-
+
+
+ com.destroystokyo.paper
+ paper-api
+ 1.13.2-R0.1-SNAPSHOT
+
+
-
-
- papermc
- https://papermc.io/repo/repository/maven-public/
-
-
+
+
+ papermc
+ https://papermc.io/repo/repository/maven-public/
+
+
-
- ${project.artifactId}
-
-
- org.apache.maven.plugins
- maven-checkstyle-plugin
- 3.1.2
-
-
- checkstyle
- validate
-
- check
-
-
-
- suppressions.xml
-
- true
-
-
-
-
-
-
+
+ ${project.artifactId}
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+
+ checkstyle
+ validate
+
+ check
+
+
+ checkstyle.xml
+ suppressions.xml
+ true
+
+
+
+
+
+
diff --git a/src/main/java/pw/kaboom/commandspy/Main.java b/src/main/java/pw/kaboom/commandspy/Main.java
index 9f9c67c..1e6b692 100644
--- a/src/main/java/pw/kaboom/commandspy/Main.java
+++ b/src/main/java/pw/kaboom/commandspy/Main.java
@@ -41,7 +41,8 @@ public final class Main extends JavaPlugin implements CommandExecutor, Listener
}
@Override
- public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
+ public boolean onCommand(final CommandSender sender, final Command cmd, final String label,
+ final String[] args) {
if (sender instanceof ConsoleCommandSender) {
sender.sendMessage("Command has to be run by a player");
return true;
@@ -72,7 +73,8 @@ public final class Main extends JavaPlugin implements CommandExecutor, Listener
}
Set uuids = config.getKeys(false);
- ChatColor color = (uuids.contains(event.getPlayer().getUniqueId().toString())) ? ChatColor.YELLOW : ChatColor.AQUA;
+ ChatColor color = (uuids.contains(event.getPlayer().getUniqueId().toString()))
+ ? ChatColor.YELLOW : ChatColor.AQUA;
for (String uuidString : uuids) {
UUID uuid = UUID.fromString(uuidString);
@@ -91,7 +93,8 @@ public final class Main extends JavaPlugin implements CommandExecutor, Listener
@EventHandler
void onSignChange(final SignChangeEvent event) {
Set uuids = config.getKeys(false);
- ChatColor color = (uuids.contains(event.getPlayer().getUniqueId().toString())) ? ChatColor.YELLOW : ChatColor.AQUA;
+ ChatColor color = (uuids.contains(event.getPlayer().getUniqueId().toString()))
+ ? ChatColor.YELLOW : ChatColor.AQUA;
for (String uuidString : uuids) {
UUID uuid = UUID.fromString(uuidString);
diff --git a/suppressions.xml b/suppressions.xml
index f5c665f..8990963 100644
--- a/suppressions.xml
+++ b/suppressions.xml
@@ -1,10 +1,8 @@
-
+ "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
+ "https://checkstyle.org/dtds/suppressions_1_2.dtd">
-
-
+