Paper Metrics
Removes Spigot's mcstats metrics in favor of a system using bStats To disable for privacy or other reasons go to the bStats folder in your plugins folder and edit the config.yml file present there. Please keep in mind the data collected is anonymous and collection should have no tangible effect on server performance. The data is used to allow the authors of PaperMC to track version and platform usage so that we can make better management decisions on behalf of the project.
This commit is contained in:
parent
bd7282c66d
commit
329dfdabdc
3 changed files with 696 additions and 11 deletions
|
@ -143,7 +143,7 @@
|
|||
thread.setDaemon(true);
|
||||
thread.setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler(DedicatedServer.LOGGER));
|
||||
thread.start();
|
||||
@@ -126,13 +204,24 @@
|
||||
@@ -126,13 +204,25 @@
|
||||
this.setPreventProxyConnections(dedicatedserverproperties.preventProxyConnections);
|
||||
this.setLocalIp(dedicatedserverproperties.serverIp);
|
||||
}
|
||||
|
@ -158,6 +158,7 @@
|
|||
+ this.paperConfigurations.initializeWorldDefaultsConfiguration(this.registryAccess());
|
||||
+ // Paper end - initialize global and world-defaults configuration
|
||||
+ io.papermc.paper.command.PaperCommands.registerCommands(this); // Paper - setup /paper command
|
||||
+ com.destroystokyo.paper.Metrics.PaperMetrics.startMetrics(); // Paper - start metrics
|
||||
|
||||
this.setPvpAllowed(dedicatedserverproperties.pvp);
|
||||
this.setFlightAllowed(dedicatedserverproperties.allowFlight);
|
||||
|
@ -169,7 +170,7 @@
|
|||
DedicatedServer.LOGGER.info("Default game type: {}", dedicatedserverproperties.gamemode);
|
||||
InetAddress inetaddress = null;
|
||||
|
||||
@@ -156,10 +245,23 @@
|
||||
@@ -156,10 +246,23 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -194,7 +195,7 @@
|
|||
DedicatedServer.LOGGER.warn("To change this, set \"online-mode\" to \"true\" in the server.properties file.");
|
||||
}
|
||||
|
||||
@@ -170,7 +272,7 @@
|
||||
@@ -170,7 +273,7 @@
|
||||
if (!OldUsersConverter.serverReadyAfterUserconversion(this)) {
|
||||
return false;
|
||||
} else {
|
||||
|
@ -203,7 +204,7 @@
|
|||
this.debugSampleSubscriptionTracker = new DebugSampleSubscriptionTracker(this.getPlayerList());
|
||||
this.tickTimeLogger = new RemoteSampleLogger(TpsDebugDimensions.values().length, this.debugSampleSubscriptionTracker, RemoteDebugSampleType.TICK_TIME);
|
||||
long i = Util.getNanos();
|
||||
@@ -178,13 +280,13 @@
|
||||
@@ -178,13 +281,13 @@
|
||||
SkullBlockEntity.setup(this.services, this);
|
||||
GameProfileCache.setUsesAuthentication(this.usesAuthentication());
|
||||
DedicatedServer.LOGGER.info("Preparing level \"{}\"", this.getLevelIdName());
|
||||
|
@ -219,7 +220,7 @@
|
|||
}
|
||||
|
||||
if (dedicatedserverproperties.enableQuery) {
|
||||
@@ -197,7 +299,7 @@
|
||||
@@ -197,7 +300,7 @@
|
||||
this.rconThread = RconThread.create(this);
|
||||
}
|
||||
|
||||
|
@ -228,7 +229,7 @@
|
|||
Thread thread1 = new Thread(new ServerWatchdog(this));
|
||||
|
||||
thread1.setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandlerWithName(DedicatedServer.LOGGER));
|
||||
@@ -293,6 +395,7 @@
|
||||
@@ -293,6 +396,7 @@
|
||||
this.queryThreadGs4.stop();
|
||||
}
|
||||
|
||||
|
@ -236,7 +237,7 @@
|
|||
}
|
||||
|
||||
@Override
|
||||
@@ -302,8 +405,8 @@
|
||||
@@ -302,8 +406,8 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -247,7 +248,7 @@
|
|||
}
|
||||
|
||||
public void handleConsoleInput(String command, CommandSourceStack commandSource) {
|
||||
@@ -311,12 +414,22 @@
|
||||
@@ -311,12 +415,22 @@
|
||||
}
|
||||
|
||||
public void handleConsoleInputs() {
|
||||
|
@ -271,7 +272,7 @@
|
|||
}
|
||||
|
||||
@Override
|
||||
@@ -383,7 +496,7 @@
|
||||
@@ -383,7 +497,7 @@
|
||||
|
||||
@Override
|
||||
public boolean isUnderSpawnProtection(ServerLevel world, BlockPos pos, Player player) {
|
||||
|
@ -280,7 +281,7 @@
|
|||
return false;
|
||||
} else if (this.getPlayerList().getOps().isEmpty()) {
|
||||
return false;
|
||||
@@ -541,16 +654,52 @@
|
||||
@@ -541,16 +655,52 @@
|
||||
|
||||
@Override
|
||||
public String getPluginNames() {
|
||||
|
@ -337,7 +338,7 @@
|
|||
}
|
||||
|
||||
public void storeUsingWhiteList(boolean useWhitelist) {
|
||||
@@ -660,4 +809,15 @@
|
||||
@@ -660,4 +810,15 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue