forked from retromcorg/Project-Poseidon
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/RhysB/Project-Poseidon in…
…to RhysB-master
- Loading branch information
Showing
25 changed files
with
697 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.legacyminecraft.poseidon; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.craftbukkit.CraftServer; | ||
|
||
import java.util.LinkedList; | ||
|
||
public class Poseidon { | ||
|
||
/** | ||
* Returns a list of the server's TPS (Ticks Per Second) records for performance monitoring. | ||
* The list contains Double values indicating the TPS at each second, ordered from most recent to oldest. | ||
* | ||
* @return LinkedList<Double> of TPS records. | ||
*/ | ||
public static LinkedList<Double> getTpsRecords() { | ||
return ((CraftServer) Bukkit.getServer()).getServer().getTpsRecords(); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.