File tree Expand file tree Collapse file tree 5 files changed +21
-5
lines changed
src/main/java/org/maxgamer/quickshop/economy Expand file tree Collapse file tree 5 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 1919
2020package org .maxgamer .quickshop .economy ;
2121
22- public class EconomyProviderNotFoundException extends RuntimeException {
22+ public class EconomyProviderNotFoundException extends IllegalStateException {
23+ public EconomyProviderNotFoundException () {
24+ super ();
25+ }
26+
27+ public EconomyProviderNotFoundException (String s ) {
28+ super (s );
29+ }
30+
31+ public EconomyProviderNotFoundException (String message , Throwable cause ) {
32+ super (message , cause );
33+ }
34+
35+ public EconomyProviderNotFoundException (Throwable cause ) {
36+ super (cause );
37+ }
38+
2339}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ private void init() {
6464
6565 private void setupEconomy () throws EconomyProviderNotFoundException {
6666 if (Bukkit .getPluginManager ().getPlugin ("GemsEconomy" ) == null ) {
67- throw new EconomyProviderNotFoundException ();
67+ throw new EconomyProviderNotFoundException ("Configuration set economy to GemsEconomy but GemsEconomy not installed" );
6868 }
6969 this .api = new GemsEconomyAPI ();
7070 }
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ private void setup() throws EconomyProviderNotFoundException {
7575 try {
7676 Plugin pl = plugin .getServer ().getPluginManager ().getPlugin ("Reserve" );
7777 if (pl == null ) {
78- throw new EconomyProviderNotFoundException ();
78+ throw new EconomyProviderNotFoundException ("Configuration set economy to Reserve but Reserve not installed" );
7979 }
8080 Reserve re = ((Reserve ) plugin .getServer ().getPluginManager ().getPlugin ("Reserve" ));
8181 if (re .economyProvided ()) {
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ private void setupEconomy() throws EconomyProviderNotFoundException {
6565 if (Bukkit .getPluginManager ().getPlugin ("TNE" ) == null
6666 && Bukkit .getPluginManager ().getPlugin ("TNE-Bukkit" ) == null
6767 && Bukkit .getPluginManager ().getPlugin ("TheNewEconomy" ) == null ) {
68- throw new EconomyProviderNotFoundException ();
68+ throw new EconomyProviderNotFoundException ("Configuration set economy to TheNewEconomy but TheNewEconomy not installed" );
6969 }
7070 this .api = TNE .instance ().api ();
7171 }
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ private void init() {
7373
7474 private boolean setupEconomy () throws EconomyProviderNotFoundException {
7575 if (!Util .isClassAvailable ("net.milkbowl.vault.economy.Economy" )) {
76- throw new EconomyProviderNotFoundException ();
76+ throw new EconomyProviderNotFoundException ("Configuration set economy to Vault but Vault not installed" );
7777 }
7878 RegisteredServiceProvider <net .milkbowl .vault .economy .Economy > economyProvider ;
7979 try {
You can’t perform that action at this time.
0 commit comments