File tree Expand file tree Collapse file tree
core/src/main/java/org/geysermc/floodgate/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646import org .geysermc .floodgate .config .FloodgateConfig .MetricsConfig ;
4747import org .geysermc .floodgate .event .lifecycle .ShutdownEvent ;
4848import org .geysermc .floodgate .platform .util .PlatformUtils ;
49+ import org .geysermc .floodgate .platform .util .PlatformUtils .AuthType ;
4950
5051@ Listener
5152@ AutoBind
@@ -101,6 +102,15 @@ public final class Metrics {
101102 new SimplePie ("floodgate_version" , () -> Constants .VERSION )
102103 );
103104
105+ metricsBase .addCustomChart (
106+ new SimplePie ("using-backend-server-linking" , () -> {
107+ if (platformUtils .authType () == AuthType .PROXIED ) {
108+ return String .valueOf (config .getPlayerLink ().isEnableOwnLinking ());
109+ }
110+ return "false" ;
111+ })
112+ );
113+
104114 metricsBase .addCustomChart (
105115 new DrilldownPie ("platform" , () -> Collections .singletonMap (
106116 implementationName ,
You can’t perform that action at this time.
0 commit comments