mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-26 02:19:21 +00:00
update libs
This commit is contained in:
@@ -38,7 +38,12 @@ public class FileSelector {
|
||||
if (file.isFile() && file.getName().endsWith(".yml")) {
|
||||
items.addLast(new FileItem(file));
|
||||
} else if (file.isDirectory()) {
|
||||
items.addFirst(new FolderItem(file));
|
||||
String path = file.getPath();
|
||||
String[] split = path.split("\\\\");
|
||||
String type = split[3];
|
||||
switch (type) {
|
||||
case "item", "rod", "bait", "util", "hook" -> items.addFirst(new FolderItem(file));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ lang: english
|
||||
|
||||
# Mechanic settings
|
||||
mechanics:
|
||||
|
||||
# Specifies the conditions required for the plugin mechanics to work.
|
||||
# Here, the type is !world, which implies the plugin won't work in
|
||||
# the world named 'blacklist_world'.
|
||||
|
||||
@@ -27,4 +27,5 @@ softdepend:
|
||||
- Zaphkiel
|
||||
permissions:
|
||||
fishingbag.user:
|
||||
default: true
|
||||
default: true
|
||||
fishingbag.loot
|
||||
Reference in New Issue
Block a user