mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-25 12:25:18 +01:00
Updated build.gradle with spigot 1.8
This commit is contained in:
parent
10539d632b
commit
17f8e72b2a
@ -58,7 +58,7 @@ dependencies {
|
|||||||
implementation 'com.bgsoftware.common.reflection:ReflectionUtils:latest'
|
implementation 'com.bgsoftware.common.reflection:ReflectionUtils:latest'
|
||||||
|
|
||||||
// Spigot jars
|
// Spigot jars
|
||||||
compileOnly "org.spigotmc:v1_7_R3:latest"
|
compileOnly "org.spigotmc:v1_8_R3:latest"
|
||||||
compileOnly 'org.spigotmc:v1_16_R3-Tuinity:latest'
|
compileOnly 'org.spigotmc:v1_16_R3-Tuinity:latest'
|
||||||
|
|
||||||
// Plugin Hooks
|
// Plugin Hooks
|
||||||
|
@ -236,7 +236,7 @@ public class Metrics {
|
|||||||
? ((Collection<?>) onlinePlayersMethod.invoke(Bukkit.getServer())).size()
|
? ((Collection<?>) onlinePlayersMethod.invoke(Bukkit.getServer())).size()
|
||||||
: ((Player[]) onlinePlayersMethod.invoke(Bukkit.getServer())).length;
|
: ((Player[]) onlinePlayersMethod.invoke(Bukkit.getServer())).length;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
playerAmount = Bukkit.getOnlinePlayers().length; // Just use the new method if the Reflection failed
|
playerAmount = Bukkit.getOnlinePlayers().size(); // Just use the new method if the Reflection failed
|
||||||
}
|
}
|
||||||
int onlineMode = Bukkit.getOnlineMode() ? 1 : 0;
|
int onlineMode = Bukkit.getOnlineMode() ? 1 : 0;
|
||||||
String bukkitVersion = Bukkit.getVersion();
|
String bukkitVersion = Bukkit.getVersion();
|
||||||
|
Loading…
Reference in New Issue
Block a user