Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 5925830

Browse files
committed
2.8.1
1 parent 3ef9c91 commit 5925830

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/me/poma123/spawners/Listener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public void onSignClick(PlayerInteractEvent e) {
322322
swmeta.setDisplayName("§e" + spawnedType.toLowerCase() + " §7Spawner");
323323

324324
spawner.setItemMeta(swmeta);
325-
if (PickupSpawners.vault != null) {
325+
try {
326326
Economy economy = PickupSpawners.vault.getEconomy();
327327

328328
if (economy.getBalance(p) >= price) {
@@ -333,7 +333,7 @@ public void onSignClick(PlayerInteractEvent e) {
333333
p.sendMessage(Language.getLocale(p, LocalePath.NO_ENOUGH_MONEY));
334334
}
335335

336-
} else {
336+
} catch (Exception ex) {
337337
plugin.getLogger().warning(
338338
"§cThere was an error when attempt to buy a spawner. Vault is not installed.");
339339
p.sendMessage(

src/me/poma123/spawners/VaultAPI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public class VaultAPI {
1818
public VaultAPI(Plugin plugin) {
1919
this.plugin = plugin;
2020
if (!setupEconomy()) {
21-
plugin.getPluginLoader().disablePlugin(plugin);
22-
plugin.getLogger().severe(String.format("[%s] - Disabled due to no Vault dependency found!", plugin.getDescription().getName()));
21+
//plugin.getPluginLoader().disablePlugin(plugin);
22+
plugin.getLogger().severe(String.format("[%s] - No Vault dependency found! The sign shops will not working!!!", plugin.getDescription().getName()));
2323
}
2424
}
2525

src/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ author: poma123
22
main: me.poma123.spawners.PickupSpawners
33
name: PickupSpawners
44
api-version: 1.13
5-
version: 2.8.0
5+
version: 2.8.1
66
softdepend: [Vault]
77

88
permissions:

0 commit comments

Comments
 (0)