Fix delete inconsistencies

This commit is contained in:
mbax
2022-12-28 15:29:43 -05:00
parent ea6dea1ef7
commit 9c651db060
@@ -56,7 +56,7 @@ public class DeleteCommand implements CommandExecutor {
}
OfflinePlayer searchPlayer = Bukkit.getOfflinePlayer(args[0]);
String target = args[0];
if (searchPlayer != null && searchPlayer.hasPlayedBefore()) {
if (args[0].matches("^\\w{3,16}$") && searchPlayer != null) {
target = searchPlayer.getUniqueId().toString();
}