mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Fixed phome command not working
This commit is contained in:
1 parent
c7e6515f16
commit
7474bb805f
2 files changed
+2
-2
No files matched your search
@@ -35,7 +35,7 @@ public class PublichomeCommand extends CommandBase implements TabCompleter {
|
||||
|
||||
@Override
|
||||
protected void onCommand(Player p, Command command, String label, String[] args) {
|
||||
if (args.length == 1) {
|
||||
if (args.length == 0) {
|
||||
ListHandler.displayPublicHomeList(p, 1);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ public final class RegexUtil {
|
||||
|
||||
public static final Pattern DESCRIPTION_PATTERN = Pattern.compile("[a-zA-Z0-9\\d\\-_\\s]+");
|
||||
public static final Pattern NAME_PATTERN = Pattern.compile("[A-Za-z0-9_\\-]+");
|
||||
public static final Pattern OWNER_NAME_PATTERN = Pattern.compile("[A-Za-z0-9_]\\.[A-Za-z0-9_\\-]");
|
||||
public static final Pattern OWNER_NAME_PATTERN = Pattern.compile("[A-Za-z0-9_]+\\.[A-Za-z0-9_\\-]+");
|
||||
|
||||
private RegexUtil() {
|
||||
// No object for you
|
||||
|
||||
Reference in new issue
Block a user