mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
removed unnecessary try/catch
This commit is contained in:
1 parent
36dbfed7e3
commit
37bc19a000
1 file changed
+1
-6
@@ -217,12 +217,7 @@ public class Metrics {
|
||||
*/
|
||||
private JSONObject getServerData() {
|
||||
// Minecraft specific data
|
||||
int playerAmount;
|
||||
try {
|
||||
playerAmount = Main.getOnlinePlayers().length;
|
||||
} catch (Exception e1) {
|
||||
playerAmount = 0;
|
||||
}
|
||||
int playerAmount = Main.getOnlinePlayers().length;
|
||||
int onlineMode = Bukkit.getOnlineMode() ? 1 : 0;
|
||||
String bukkitVersion = Bukkit.getVersion();
|
||||
|
||||
|
||||
Reference in new issue
Block a user