mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 18:09:48 -05:00
Check create status
This commit is contained in:
1 parent
5e7dbb1704
commit
997efb270a
1 file changed
+5
-1
@@ -401,7 +401,11 @@ public class QuickShop extends JavaPlugin {
|
||||
try {
|
||||
Util.debugLog("Tax account not exists! Creating...");
|
||||
getLogger().warning("QuickShop detected tax account not exists, we're trying to create one. If you see any errors, please change tax-account in config.yml to server owner in-game username");
|
||||
vault.getVault().createPlayerAccount(tax);
|
||||
if (vault.getVault().createPlayerAccount(tax)) {
|
||||
getLogger().info("Tax account created.");
|
||||
} else {
|
||||
getLogger().warning("Cannot to create tax-account, please change tax-account in config.yml to server owner in-game username");
|
||||
}
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
if (!vault.getVault().hasAccount(tax)) {
|
||||
|
||||
Reference in new issue
Block a user