diff --git a/mavenmcserver/src/main/java/mavenmcserver/command/CommandTicTacToe.java b/mavenmcserver/src/main/java/mavenmcserver/command/CommandTicTacToe.java index 32b832a..fb6a4a2 100644 --- a/mavenmcserver/src/main/java/mavenmcserver/command/CommandTicTacToe.java +++ b/mavenmcserver/src/main/java/mavenmcserver/command/CommandTicTacToe.java @@ -63,7 +63,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St sender.sendMessage(ChatColor.RED + e.getMessage() + ChatColor.RESET); return true; } catch(NumberFormatException e) { - String nonNumberString = e.getMessage().substring(19, e.getMessage().length() - 2); + String nonNumberString = e.getMessage().substring(19, e.getMessage().length() - 1); sender.sendMessage(ChatColor.RED + "Error: expected number at '" + nonNumberString + "'" + ChatColor.RESET); return true; }