Refactor #getServer() to be pre-cached from a CachedServer yaml file, no longer require fetcher, add #fetchServer(requester)

This commit is contained in:
William committed 2022-08-31 11:55:47 +01:00
1 parent 800bffbbf2
commit 74cb268426
11 files changed
+105 -45

No files matched your search

@@ -107,14 +107,14 @@ public class HuskHomesAPI extends BaseHuskHomesAPI {
}
/**
* Get this {@link Server}.
* Get the {@link Server}, containing the ID of the server the plugin is running on
*
* @param requester a player; needed to send a plugin message requesting the server if it has not been cached
* @return the {@link Server}
* @since 3.0
*/
@NotNull
public Server getServer(@NotNull OnlineUser requester) {
return plugin.getServer(requester);
public Server getServer() {
return plugin.getPluginServer();
}
}