mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 18:39:44 -05:00
Add tax checking
Former-commit-id: 0aa170349e48ae9dd815b43a5132afe56d634085
This commit is contained in:
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.
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user