DevCyntrix / death-chest

A spigot plugin for spawning a chest when the player dies. It supports ProtocolLib, WorldGuard, and PlotSquared for additional features
https://www.spigotmc.org/resources/death-chest.101066/
MIT License
14 stars 10 forks source link

Not permission for chest #92

Open KikyoC opened 2 months ago

KikyoC commented 2 months ago

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; }

DevCyntrix commented 1 month ago

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.

Best reguards