aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/command/exception/InvalidPlayerNameException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/command/exception/InvalidPlayerNameException.java')
-rw-r--r--src/main/java/de/cowtipper/cowlection/command/exception/InvalidPlayerNameException.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/command/exception/InvalidPlayerNameException.java b/src/main/java/de/cowtipper/cowlection/command/exception/InvalidPlayerNameException.java
new file mode 100644
index 0000000..cfaa54b
--- /dev/null
+++ b/src/main/java/de/cowtipper/cowlection/command/exception/InvalidPlayerNameException.java
@@ -0,0 +1,10 @@
+package de.cowtipper.cowlection.command.exception;
+
+import net.minecraft.command.SyntaxErrorException;
+import net.minecraft.util.EnumChatFormatting;
+
+public class InvalidPlayerNameException extends SyntaxErrorException {
+ public InvalidPlayerNameException(String playerName) {
+ super(EnumChatFormatting.DARK_RED + playerName + EnumChatFormatting.RED + "? This... doesn't look like a valid username.");
+ }
+}