This repository was archived by the owner on Jan 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ author: poma123
22main : me.poma123.spawners.PickupSpawners
33name : PickupSpawners
44api-version : 1.13
5- version : 2.8.0
5+ version : 2.8.1
66softdepend : [Vault]
77
88permissions :
You can’t perform that action at this time.
0 commit comments