diff options
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.java | 10 |
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."); + } +} |