mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Refactor #getServer() to be pre-cached from a CachedServer yaml file, no longer require fetcher, add #fetchServer(requester)
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user