mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
#203 - Permission to bypass Tax
Former-commit-id: 884e5fef7f6e57791dd363f127a8001357f36e2e [formerly 36e9ac432330332acf0561ebcbfe2e8d4d89ab40] Former-commit-id: 22ffefbed8116567e018019cdb169440812ef358
This commit is contained in:
1 parent
2cee91fb8a
commit
0d9dd5a83a
2 files changed
+11
-2
No files matched your search
@@ -83,7 +83,10 @@ public class ShopManager {
|
||||
// Money handling
|
||||
double tax = plugin.getConfig().getDouble("tax");
|
||||
double total = amount * shop.getPrice();
|
||||
|
||||
if(p.hasPermission("quickshop.tax")){
|
||||
tax = 0;
|
||||
Util.debugLog("Disable the Tax for player "+p.getName()+" cause they have permission quickshop.tax");
|
||||
}
|
||||
if (tax < 0) {
|
||||
tax = 0; //Tax was disabled.
|
||||
}
|
||||
@@ -326,7 +329,10 @@ public class ShopManager {
|
||||
// Money handling
|
||||
double tax = plugin.getConfig().getDouble("tax");
|
||||
double total = amount * shop.getPrice();
|
||||
|
||||
if(p.hasPermission("quickshop.tax")){
|
||||
tax = 0;
|
||||
Util.debugLog("Disable the Tax for player "+p.getName()+" cause they have permission quickshop.tax");
|
||||
}
|
||||
if (tax < 0) {
|
||||
tax = 0; //Tax was disabled.
|
||||
}
|
||||
|
||||
@@ -92,3 +92,6 @@ permissions:
|
||||
quickshop.preview:
|
||||
description: Permission for preview item to use a GUI
|
||||
default: true
|
||||
quickshop.tax:
|
||||
description: Permission to bypass Tax
|
||||
default: op
|
||||
Reference in new issue
Block a user