mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2026-01-06 15:51:50 +00:00
update libs
This commit is contained in:
@@ -20,8 +20,8 @@ allprojects {
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven("https://maven.aliyun.com/repository/public/")
|
||||
mavenCentral()
|
||||
maven("https://maven.aliyun.com/repository/public/")
|
||||
maven("https://papermc.io/repo/repository/maven-public/")
|
||||
maven("https://oss.sonatype.org/content/groups/public/")
|
||||
maven("https://repo.dmulloy2.net/repository/public/")
|
||||
@@ -39,6 +39,7 @@ allprojects {
|
||||
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
|
||||
maven("https://repo.minebench.de/")
|
||||
maven("https://repo.xenondevs.xyz/releases/")
|
||||
maven("https://repo.oraxen.com/releases")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ dependencies {
|
||||
compileOnly("dev.folia:folia-api:1.20.1-R0.1-SNAPSHOT")
|
||||
|
||||
// command
|
||||
compileOnly("dev.jorel:commandapi-bukkit-core:9.2.0")
|
||||
compileOnly("dev.jorel:commandapi-bukkit-core:9.3.0")
|
||||
|
||||
// packet
|
||||
compileOnly("com.comphenix.protocol:ProtocolLib:5.1.0")
|
||||
|
||||
@@ -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