This is what I do for fixing that bug @Override public boolean canBuild(@NotNull Player player, @NotNull Location location, @NotNull Material material) { for (ProtectionService service : services) { if (!service.canBuild(player, location, material)) { return false; } } return true; }
Hey @KikyoC ,
When does the plugin say you don't have permission? Because the class is for checking the location where the player died and whether the player could build a chest in that area.
Hey,
The plugin says that I don't have permissions. I think that bug is from CombinedProtectionService#canBuild
This is what I do for fixing that bug
@Override public boolean canBuild(@NotNull Player player, @NotNull Location location, @NotNull Material material) { for (ProtectionService service : services) { if (!service.canBuild(player, location, material)) { return false; } } return true; }