From 2c76604bb5fd4ec4da822b26118b371bcd48038b Mon Sep 17 00:00:00 2001 From: jojo Date: Mon, 12 Oct 2020 12:50:35 +0200 Subject: [PATCH] Add Copyright Notice --- .../src/de/steamwar/core/SpigotTPS_10.java | 19 +++++++++++++++++++ .../src/de/steamwar/core/SpigotTPS_12.java | 19 +++++++++++++++++++ .../src/de/steamwar/core/SpigotTPS_14.java | 19 +++++++++++++++++++ .../src/de/steamwar/core/SpigotTPS_15.java | 19 +++++++++++++++++++ .../src/de/steamwar/core/SpigotTPS_8.java | 19 +++++++++++++++++++ .../src/de/steamwar/core/SpigotTPS_9.java | 19 +++++++++++++++++++ .../src/de/steamwar/core/Core.java | 1 + .../src/de/steamwar/core/TPSWatcher.java | 9 +++++++-- 8 files changed, 122 insertions(+), 2 deletions(-) diff --git a/SpigotCore_10/src/de/steamwar/core/SpigotTPS_10.java b/SpigotCore_10/src/de/steamwar/core/SpigotTPS_10.java index 792022e..2cc2d26 100644 --- a/SpigotCore_10/src/de/steamwar/core/SpigotTPS_10.java +++ b/SpigotCore_10/src/de/steamwar/core/SpigotTPS_10.java @@ -1,3 +1,22 @@ +/* + This file is a part of the SteamWar software. + + Copyright (C) 2020 SteamWar.de-Serverteam + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + package de.steamwar.core; import net.minecraft.server.v1_10_R1.MinecraftServer; diff --git a/SpigotCore_12/src/de/steamwar/core/SpigotTPS_12.java b/SpigotCore_12/src/de/steamwar/core/SpigotTPS_12.java index 60bc6d9..17541c7 100644 --- a/SpigotCore_12/src/de/steamwar/core/SpigotTPS_12.java +++ b/SpigotCore_12/src/de/steamwar/core/SpigotTPS_12.java @@ -1,3 +1,22 @@ +/* + This file is a part of the SteamWar software. + + Copyright (C) 2020 SteamWar.de-Serverteam + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + package de.steamwar.core; import net.minecraft.server.v1_12_R1.MinecraftServer; diff --git a/SpigotCore_14/src/de/steamwar/core/SpigotTPS_14.java b/SpigotCore_14/src/de/steamwar/core/SpigotTPS_14.java index 6bd8491..d00aba8 100644 --- a/SpigotCore_14/src/de/steamwar/core/SpigotTPS_14.java +++ b/SpigotCore_14/src/de/steamwar/core/SpigotTPS_14.java @@ -1,3 +1,22 @@ +/* + This file is a part of the SteamWar software. + + Copyright (C) 2020 SteamWar.de-Serverteam + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + package de.steamwar.core; import net.minecraft.server.v1_14_R1.MinecraftServer; diff --git a/SpigotCore_15/src/de/steamwar/core/SpigotTPS_15.java b/SpigotCore_15/src/de/steamwar/core/SpigotTPS_15.java index e9919f9..46c1186 100644 --- a/SpigotCore_15/src/de/steamwar/core/SpigotTPS_15.java +++ b/SpigotCore_15/src/de/steamwar/core/SpigotTPS_15.java @@ -1,3 +1,22 @@ +/* + This file is a part of the SteamWar software. + + Copyright (C) 2020 SteamWar.de-Serverteam + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + package de.steamwar.core; import net.minecraft.server.v1_15_R1.MinecraftServer; diff --git a/SpigotCore_8/src/de/steamwar/core/SpigotTPS_8.java b/SpigotCore_8/src/de/steamwar/core/SpigotTPS_8.java index 8669728..aeb94d1 100644 --- a/SpigotCore_8/src/de/steamwar/core/SpigotTPS_8.java +++ b/SpigotCore_8/src/de/steamwar/core/SpigotTPS_8.java @@ -1,3 +1,22 @@ +/* + This file is a part of the SteamWar software. + + Copyright (C) 2020 SteamWar.de-Serverteam + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + package de.steamwar.core; import net.minecraft.server.v1_8_R3.MinecraftServer; diff --git a/SpigotCore_9/src/de/steamwar/core/SpigotTPS_9.java b/SpigotCore_9/src/de/steamwar/core/SpigotTPS_9.java index fa5d3e6..6a0ba28 100644 --- a/SpigotCore_9/src/de/steamwar/core/SpigotTPS_9.java +++ b/SpigotCore_9/src/de/steamwar/core/SpigotTPS_9.java @@ -1,3 +1,22 @@ +/* + This file is a part of the SteamWar software. + + Copyright (C) 2020 SteamWar.de-Serverteam + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + package de.steamwar.core; import net.minecraft.server.v1_9_R2.MinecraftServer; diff --git a/SpigotCore_Main/src/de/steamwar/core/Core.java b/SpigotCore_Main/src/de/steamwar/core/Core.java index 5d5ec25..a7e1cab 100644 --- a/SpigotCore_Main/src/de/steamwar/core/Core.java +++ b/SpigotCore_Main/src/de/steamwar/core/Core.java @@ -64,6 +64,7 @@ public class Core extends JavaPlugin{ ErrorLogger.init(); getServer().getMessenger().registerIncomingPluginChannel(this, "sw:bridge", new BungeeReceiver()); getServer().getMessenger().registerOutgoingPluginChannel(this, "sw:bridge"); + TPSWatcher.init(); } diff --git a/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java b/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java index 5c718cc..a0dd0b9 100644 --- a/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java +++ b/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java @@ -25,8 +25,13 @@ public class TPSWatcher { private static final double tickDefault = 20.0; - private static TPSWatcher tps_OneSecond = new TPSWatcher(1000); - private static TPSWatcher tps_TenSecond = new TPSWatcher(10000); + private static TPSWatcher tps_OneSecond; + private static TPSWatcher tps_TenSecond; + + public static void init() { + tps_OneSecond = new TPSWatcher(1000); + tps_TenSecond = new TPSWatcher(10000); + } private long lastTime = System.currentTimeMillis();