diff --git a/core/music/play/LyricSave.java b/core/music/play/LyricSave.java index ea174739..cb326a14 100644 --- a/core/music/play/LyricSave.java +++ b/core/music/play/LyricSave.java @@ -83,27 +83,6 @@ public class LyricSave { return false; } - /* - * 因为一些原因,直接 Map.get 会出现歌词匹配速度不太对的问题... - * 本方法虽然没有原来的好看,但准度提高并且几乎不会影响服务器 - */ -// public LyricItemObj findLrcObj(Map map, int time) { -// Set set = map.entrySet(); -// LyricItemObj latestObj = new LyricItemObj("", ""); -// for (Iterator iter = set.iterator(); iter.hasNext();) { -// Map.Entry entry = (Map.Entry) iter.next(); -// int key = (int) entry.getKey(); -// if (time == key) -// return (LyricItemObj) entry.getValue(); -// else if (time < key) { -// return latestObj; -// } else { -// latestObj = (LyricItemObj) entry.getValue(); -// } -// } -// return latestObj; -// } - public boolean checkTime(int playNow, boolean ktv) { if (lyric == null) return false; diff --git a/folia/build.gradle b/folia/build.gradle index 5ba9138a..166be84f 100644 --- a/folia/build.gradle +++ b/folia/build.gradle @@ -38,7 +38,7 @@ dependencies { //implementation "org.apache.commons:commons-dbcp2:2.9.0" //implementation 'mysql:mysql-connector-java:8.0.31' - compileOnly 'dev.folia:folia-api:1.20-R0.1-SNAPSHOT' + compileOnly 'dev.folia:folia-api:1.20.2-R0.1-SNAPSHOT' compileOnly "com.github.MilkBowl:VaultAPI:1.7.1" compileOnly 'me.clip:placeholderapi:2.10.10' //compileOnly 'net.citizensnpcs:citizens-main:2.0.30-SNAPSHOT' diff --git a/folia/src/main/resources/plugin.yml b/folia/src/main/resources/plugin.yml index 4e948ed5..df3481eb 100644 --- a/folia/src/main/resources/plugin.yml +++ b/folia/src/main/resources/plugin.yml @@ -1,10 +1,10 @@ name: AllMusic main: coloryr.allmusic.AllMusicFolia author: Color_yr -version: 2.18.14 +version: 2.19.2 folia-supported: true softdepend: [PlaceholderAPI, Vault, Essentials, CMI] -api-version: 1.19 +api-version: 1.13 commands: music: diff --git a/server/build.gradle b/server/build.gradle index 523e7b37..a4496bd8 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -44,7 +44,7 @@ dependencies { //implementation 'org.xerial:sqlite-jdbc:3.39.3.0' compile 'com.squareup.okhttp3:okhttp:4.12.0' - compile 'com.google.code.gson:gson:2.10' + compile 'com.google.code.gson:gson:2.10.1' //annotationProcessor 'com.velocitypowered:velocity-api:3.0.0' } diff --git a/server/src/main/resources/plugin.yml b/server/src/main/resources/plugin.yml index 952139cc..d8eac07e 100644 --- a/server/src/main/resources/plugin.yml +++ b/server/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: AllMusic main: coloryr.allmusic.AllMusicBukkit author: Color_yr -version: 2.18.14 +version: 2.19.2 softdepend: [PlaceholderAPI, Vault, Essentials, CMI] api-version: 1.13