Skip to content

Commit

Permalink
fix: redundant floodgate code
Browse files Browse the repository at this point in the history
Signed-off-by: Thatsmusic99 <25277367+thatsmusic99@users.noreply.github.com>
  • Loading branch information
Thatsmusic99 committed Aug 20, 2023
1 parent aee50b0 commit 6519b9e
Showing 1 changed file with 0 additions and 10 deletions.
Expand Up @@ -18,7 +18,6 @@
import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerTeleportEvent;
import org.bukkit.permissions.PermissionAttachmentInfo;
import org.geysermc.floodgate.api.FloodgateApi;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down Expand Up @@ -59,15 +58,6 @@ public ATPlayer(
this.homes = new LinkedHashMap<>();
this.blockedUsers = new HashMap<>();

if (Bukkit.getServer().getPluginManager().getPlugin("floodgate")!=null && Bukkit.getServer().getPluginManager().isPluginEnabled("floodgate")) {
FloodgateApi api = FloodgateApi.getInstance();
if (api == null) {
CoreClass.getInstance().getLogger().severe("Detected the floodgate plugin, but it seems to be out of date. Please use floodgate v2.");
return;
}
if (api.isFloodgateId(uuid)) this.uuid = api.getPlayer(uuid).getCorrectUniqueId();
}

BlocklistManager.get().getBlockedPlayers(uuid.toString(), (list) -> this.blockedUsers = list);
HomeSQLManager.get().getHomes(uuid.toString(), list -> {
this.homes = list;
Expand Down

0 comments on commit 6519b9e

Please sign in to comment.