Fix timings config being removed by another patch

This commit is contained in:
Byteflux 2016-03-24 23:46:53 -07:00
parent dd60ba4869
commit cadf65501b

View file

@ -8,46 +8,6 @@ diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/j
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
@@ -0,0 +0,0 @@ public class PaperConfig {
return config.getString(path, config.getString(path));
}
- private static void timings() {
- boolean timings = getBoolean("timings.enabled", true);
- boolean verboseTimings = getBoolean("timings.verbose", true);
- TimingsManager.privacy = getBoolean("timings.server-name-privacy", false);
- TimingsManager.hiddenConfigs = getList("timings.hidden-config-entries", Lists.newArrayList("database", "settings.bungeecord-addresses"));
- int timingHistoryInterval = getInt("timings.history-interval", 300);
- int timingHistoryLength = getInt("timings.history-length", 3600);
-
-
- Timings.setVerboseTimingsEnabled(verboseTimings);
- Timings.setTimingsEnabled(timings);
- Timings.setHistoryInterval(timingHistoryInterval * 20);
- Timings.setHistoryLength(timingHistoryLength * 20);
-
- Bukkit.getLogger().log(Level.INFO, "Spigot Timings: " + timings +
- " - Verbose: " + verboseTimings +
- " - Interval: " + timeSummary(Timings.getHistoryInterval() / 20) +
- " - Length: " + timeSummary(Timings.getHistoryLength() / 20));
- }
-
- protected static String timeSummary(int seconds) {
- String time = "";
- if (seconds > 60 * 60) {
- time += TimeUnit.SECONDS.toHours(seconds) + "h";
- seconds /= 60;
- }
-
- if (seconds > 0) {
- time += TimeUnit.SECONDS.toMinutes(seconds) + "m";
- }
- return time;
- }
-
public static boolean useInteractLimiter;
private static void useInteractLimiter() {
useInteractLimiter = getBoolean("settings.limit-player-interactions", true);
@@ -0,0 +0,0 @@ public class PaperConfig {
Bukkit.getLogger().log(Level.INFO, "Disabling player interaction limiter, your server may be more vulnerable to malicious users");
}