Skip to content

Commit

Permalink
0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao-MoMi committed Feb 28, 2024
1 parent ea6977d commit b7d2517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
projectVersion = 0.6
projectVersion = 0.7
projectGroup=net.momirealms

#systemProp.socks.proxyHost=127.0.0.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.momirealms.antigrieflib.comp;

import com.craftaro.skyblock.api.SkyBlockAPI;
import com.craftaro.skyblock.api.island.IslandRole;
import net.momirealms.antigrieflib.AbstractComp;
import org.bukkit.Location;
import org.bukkit.entity.Player;
Expand Down Expand Up @@ -35,7 +36,7 @@ public boolean canInteract(Player player, Location location) {

private boolean isIslandMember(Player player, Location location) {
return Optional.ofNullable(SkyBlockAPI.getIslandManager().getIslandAtLocation(location))
.map(island -> island.getOwnerUUID() == player.getUniqueId() || island.isCoopPlayer(player.getUniqueId()))
.map(island -> island.getRole(player) != IslandRole.VISITOR)
.orElse(true);
}
}

0 comments on commit b7d2517

Please sign in to comment.