Open quequiere opened 7 years ago
I have an issue when doing /Polis unclaim unclaims the chunk but then doing /Polis info (town) the claim amount has NOT went down and does not allow me to claim anymore if it was max before unclaiming
This was when using /polis adminunclaim but both have the issue
(if that made sense)
Do you think you could make a fix for this also ? or have you not noticed this problem ?
I finaly decided to dev an other plugin like towny more complete than this one ;) https://forums.spongepowered.org/t/city-claim/17694
When you try to remove your town with /polis disband, town is removed from config files but not in the game cache.
This problem is due to this function
Just remove the async task. This fix work proprely on my server ;)
public static void removeClaims(String teamName) { Configs.removeChild(claimsConfig, new Object[] { "claims" }, teamName); Sponge.getScheduler().createTaskBuilder().async().execute(new Runnable(){ @Override public void run() { ClaimCache.unclaimAll(teamName); } }); }
to
public static void removeClaims(String teamName) { Configs.removeChild(claimsConfig, new Object[] { "claims" }, teamName); ClaimCache.unclaimAll(teamName); }