File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/main/java/com/github/games647/fastlogin/bukkit Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 168168 <dependency >
169169 <groupId >io.papermc.paper</groupId >
170170 <artifactId >paper-api</artifactId >
171- <version >1.20 .6-R0.1-SNAPSHOT</version >
171+ <version >1.21 .6-R0.1-SNAPSHOT</version >
172172 <scope >provided</scope >
173173 <!-- Use our own newer api version -->
174174 <exclusions >
Original file line number Diff line number Diff line change 3131import com .github .games647 .fastlogin .core .message .NamespaceKey ;
3232import com .google .common .io .ByteArrayDataOutput ;
3333import com .google .common .io .ByteStreams ;
34+ import io .papermc .paper .configuration .ServerConfiguration ;
3435import org .bukkit .Bukkit ;
3536import org .bukkit .Server ;
3637import org .bukkit .entity .Player ;
@@ -133,6 +134,13 @@ private boolean isVelocityEnabled()
133134 }
134135
135136 private boolean detectProxy () {
137+ try {
138+ ServerConfiguration .class .getDeclaredMethod ("isProxyEnabled" );
139+ return Bukkit .getServerConfig ().isProxyEnabled ();
140+ } catch (NoSuchMethodException noSuchMethodEx ) {
141+ // Ignore continue below
142+ }
143+
136144 try {
137145 if (isProxySupported ("org.spigotmc.SpigotConfig" , "bungee" )) {
138146 return true ;
You can’t perform that action at this time.
0 commit comments