mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Small fixes to server fetching
This commit is contained in:
1 parent
052eb57438
commit
7ac52d747f
3 files changed
+19
-6
No files matched your search
@@ -26,6 +26,7 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.File;
|
||||
@@ -63,7 +64,8 @@ public class HuskHomesBukkit extends JavaPlugin implements HuskHomes {
|
||||
* @param player {@link Player} to request the server
|
||||
* @return The {@link Server} object
|
||||
*/
|
||||
public CompletableFuture<Server> getServer(Player player) {
|
||||
@Override
|
||||
public CompletableFuture<Server> getServer(@NotNull Player player) {
|
||||
if (server != null) {
|
||||
return CompletableFuture.supplyAsync(() -> server);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user