File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
src/main/java/cc/carm/plugin/scriptitems Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 6565 <url >https://mvn.lumine.io/repository/maven-public/</url >
6666 </repository >
6767
68+ <repository >
69+ <id >papermc</id >
70+ <url >https://repo.papermc.io/repository/maven-public/</url >
71+ </repository >
72+
6873 <repository >
6974 <id >carm-repo</id >
7075 <name >Carm's Repo</name >
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ protected boolean initialize() {
5353 new Metrics (this , 14615 );
5454 }
5555
56- if (PluginConfig .CHECK_UPDATE .getNotNull ()) {
56+ if (PluginConfig .CHECK_UPDATE .getNotNull () && ! isFolia () ) {
5757 log ("开始检查更新..." );
5858 getScheduler ().runAsync (GHUpdateChecker .runner (this ));
5959 } else {
@@ -99,4 +99,13 @@ public ConfigurationHolder<?> getConfigProvider() {
9999 public ConfigurationHolder <?> getMessageProvider () {
100100 return messageProvider ;
101101 }
102+
103+ private static boolean isFolia () {
104+ try {
105+ Class .forName ("io.papermc.paper.threadedregions.RegionizedServer" );
106+ return true ;
107+ } catch (ClassNotFoundException e ) {
108+ return false ;
109+ }
110+ }
102111}
You can’t perform that action at this time.
0 commit comments