mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 03:34:57 +00:00
Add server.getTPS() which queries Essentials for the TPS
This commit is contained in:
parent
23fdf715f5
commit
06f80b244e
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,7 @@ import me.StevenLawson.TotalFreedomMod.admin.AdminList;
|
|||
import me.StevenLawson.TotalFreedomMod.ban.Ban;
|
||||
import me.StevenLawson.TotalFreedomMod.ban.BanManager;
|
||||
import me.StevenLawson.TotalFreedomMod.ban.PermbanList;
|
||||
import me.StevenLawson.TotalFreedomMod.bridge.EssentialsBridge;
|
||||
import me.StevenLawson.TotalFreedomMod.config.ConfigurationEntry;
|
||||
import me.StevenLawson.TotalFreedomMod.player.UUIDManager;
|
||||
import me.StevenLawson.TotalFreedomMod.util.SynchronousUtil;
|
||||
|
@ -11,6 +12,7 @@ import me.StevenLawson.TotalFreedomMod.util.Utilities;
|
|||
import net.minecraft.server.v1_8_R3.EntityPlayer;
|
||||
import net.minecraft.server.v1_8_R3.MinecraftServer;
|
||||
import net.minecraft.server.v1_8_R3.PropertyManager;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.player.AsyncPlayerPreLoginEvent;
|
||||
|
@ -246,4 +248,8 @@ public class Server
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public double getTPS() {
|
||||
return EssentialsBridge.getEssentialsPlugin().getTimer().getAverageTPS();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue