Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ public class FloodgateUtils {

public static boolean isBedrockPlayer(@NotNull Player player) {
if (Bukkit.getPluginManager().isPluginEnabled("floodgate")) {
return FloodgateApi.getInstance().isFloodgatePlayer(player.getUniqueId());
boolean isFloodgatePlayer = FloodgateApi.getInstance().isFloodgatePlayer(player.getUniqueId());
if (!isFloodgatePlayer) {

//temp lame fix, seems on <= 1.20.4 floodgate isnt loaded correctly
//It will close the trade if 1 or 2 players are bedrock users
//ToDO Fix me?
if (player.getUniqueId().toString().startsWith("00000000-0000-0000")) {
return true;
}
}
return isFloodgatePlayer;
} else return false;
}

Expand Down