Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Disable old metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStegii committed Nov 14, 2020
1 parent bec1421 commit 2a7a4e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 138 deletions.
10 changes: 6 additions & 4 deletions proxy/src/main/java/net/md_5/bungee/BungeeCord.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ public class BungeeCord extends ProxyServer
* locations.yml save thread.
*/
private final Timer saveThread = new Timer( "Reconnect Saver" );
private final Timer metricsThread = new Timer( "Metrics Thread" );
// KettleCord (disable metrics)
// private final Timer metricsThread = new Timer( "Metrics Thread" );
/**
* Server socket listener.
*/
Expand Down Expand Up @@ -233,7 +234,7 @@ public BungeeCord() throws IOException
getPluginManager().registerCommand( null, new CommandIP() );
getPluginManager().registerCommand( null, new CommandBungee() );
getPluginManager().registerCommand( null, new CommandPerms() );

if ( !Boolean.getBoolean( "net.md_5.bungee.native.disable" ) )
{
if ( EncryptionUtil.nativeFactory.load() )
Expand Down Expand Up @@ -286,7 +287,7 @@ public void start() throws Exception
registerChannel( ForgeConstants.FML_HANDSHAKE_TAG );
registerChannel( ForgeConstants.FORGE_REGISTER );

// KettleCord
// KettleCord (disable forge warning)
// getLogger().warning( "MinecraftForge support is currently unmaintained and may have unresolved issues. Please use at your own risk." );
}

Expand All @@ -311,7 +312,8 @@ public void run()
}
}
}, 0, TimeUnit.MINUTES.toMillis( 5 ) );
metricsThread.scheduleAtFixedRate( new Metrics(), 0, TimeUnit.MINUTES.toMillis( Metrics.PING_INTERVAL ) );
// KettleCord (disable metrics)
// metricsThread.scheduleAtFixedRate( new Metrics(), 0, TimeUnit.MINUTES.toMillis( Metrics.PING_INTERVAL ) );

Runtime.getRuntime().addShutdownHook( new Thread()
{
Expand Down
134 changes: 0 additions & 134 deletions proxy/src/main/java/net/md_5/bungee/Metrics.java

This file was deleted.

0 comments on commit 2a7a4e5

Please sign in to comment.