package com.endercrest.voidspawn.modes.island;

import com.endercrest.voidspawn.TeleportResult;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

public class USkyBlockIslandMode extends BaseIslandMode {

    @Override
    public TeleportResult onActivateIsland(Player player, String worldname) {
        return null;
    }

    @Override
    public Status[] getStatus(String worldName) {
        return new Status[0];
    }

    @Override
    public boolean isEnabled() {
        return isModeEnabled();
    }

    public static boolean isModeEnabled() {
        return Bukkit.getPluginManager().isPluginEnabled("uSkyBlock");
    }
}

package com.endercrest.voidspawn.modes.island;

import com.endercrest.voidspawn.TeleportResult;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import us.talabrek.ultimateskyblock.api.IslandInfo;
import us.talabrek.ultimateskyblock.api.uSkyBlockAPI;

public class USkyBlockIslandMode extends BaseIslandMode {
    private final uSkyBlockAPI usb;

    public USkyBlockIslandMode() {
        this.usb = (uSkyBlockAPI) Bukkit.getPluginManager().getPlugin("uSkyBlock");
    }

    @Override
    public TeleportResult onActivateIsland(Player player, String worldname) {
        IslandInfo info = usb.getIslandInfo(player);
        if (info.getWarpLocation() != null) {
            player.teleport(info.getWarpLocation());
            return TeleportResult.SUCCESS;
        }
        if (info.getIslandLocation() != null) {
            player.teleport(info.getIslandLocation());
            return TeleportResult.SUCCESS;
        }

        return TeleportResult.MISSING_ISLAND;
    }

    @Override
    public Status[] getStatus(String worldName) {
        return new Status[0];
    }

    @Override
    public boolean isEnabled() {
        return isModeEnabled();
    }

    public static boolean isModeEnabled() {
        return Bukkit.getPluginManager().isPluginEnabled("uSkyBlock");
    }
}

Add back USkyBlock support