Add tax checking

Former-commit-id: 0aa170349e48ae9dd815b43a5132afe56d634085
This commit is contained in:
sandtechnology committed 2020-03-08 09:56:51 +08:00
1 parent 861af1b8a4
commit 5d83fc9029
1 file changed
+4
@@ -569,6 +569,10 @@ public class ShopManager {
tax = 0;
Util.debugLog("Disable the Tax for player " + p.getName() + " cause they have permission quickshop.tax");
}
if(tax >= 1.0){
tax= 0;
plugin.getLogger().warning("Tax setting is invalid, it should be in 0.0-1.0 (now is "+tax+")");
}
if (tax < 0) {
tax = 0; // Tax was disabled.
}