Fixed mySQL issues

This commit is contained in:
William278 committed 2020-12-15 15:16:29 +00:00
1 parent 18b244ed65
commit 9ff3293621
18 files changed
+286 -150

No files matched your search

@@ -39,7 +39,7 @@ public class editWarpCommand implements CommandExecutor {
String newDescriptionString = newDescription.toString();
// Check the description is valid
if (!newDescriptionString.matches("[a-zA-Z0-9\\d\\-_\\s]+")) {
if (!newDescriptionString.matches("[a-zA-Z0-9\\d\\-_\\s]+") && newDescriptionString.length() > 255) {
messageManager.sendMessage(p, "error_edit_warp_invalid_description");
return true;
}