removed unnecessary try/catch

This commit is contained in:
NEZNAMY committed 2019-12-18 16:57:56 +01:00
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();