hsyyid / Polis

This plugin features Towns, where players can join forces on your server and groups of people can compete against each other.
http://negafinity.com
10 stars 5 forks source link

Unclaim disband not working totaly #44

Open quequiere opened 7 years ago

quequiere commented 7 years ago

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

Da-Spud commented 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 ?

quequiere commented 7 years ago

I finaly decided to dev an other plugin like towny more complete than this one ;) https://forums.spongepowered.org/t/city-claim/17694