@@ -129,7 +129,12 @@ public boolean hasPermsOpen(Player player, PlayerInteractEvent event) {
129129 P .p .errorLog ("Brewery was tested with version 5.8, 6.1 to 7.0 of WorldGuard!" );
130130 P .p .errorLog ("Disable the WorldGuard support in the config and do /brew reload" );
131131 e .printStackTrace ();
132- P .p .msg (player , "&cError opening Barrel, please report to an Admin!" );
132+ if (player .hasPermission ("brewery.admin" ) || player .hasPermission ("brewery.mod" )) {
133+ P .p .msg (player , "&cWorldGuard check Error, Brewery was tested with up to v7.0 of Worldguard" );
134+ P .p .msg (player , "&cSet &7useWorldGuard: false &cin the config and /brew reload" );
135+ } else {
136+ P .p .msg (player , "&cError opening Barrel, please report to an Admin!" );
137+ }
133138 return false ;
134139 }
135140 }
@@ -146,7 +151,12 @@ public boolean hasPermsOpen(Player player, PlayerInteractEvent event) {
146151 P .p .errorLog ("Brewery was tested with GriefPrevention v14.5 - v16.9" );
147152 P .p .errorLog ("Disable the GriefPrevention support in the config and do /brew reload" );
148153 e .printStackTrace ();
149- P .p .msg (player , "&cError opening Barrel, please report to an Admin!" );
154+ if (player .hasPermission ("brewery.admin" ) || player .hasPermission ("brewery.mod" )) {
155+ P .p .msg (player , "&cGriefPrevention check Error, Brewery was tested with up to v16.9 of GriefPrevention" );
156+ P .p .msg (player , "&cSet &7useGriefPrevention: false &cin the config and /brew reload" );
157+ } else {
158+ P .p .msg (player , "&cError opening Barrel, please report to an Admin!" );
159+ }
150160 return false ;
151161 }
152162 }
@@ -168,7 +178,12 @@ public boolean hasPermsOpen(Player player, PlayerInteractEvent event) {
168178 P .p .errorLog ("Brewery was tested with version 4.5.0 of LWC!" );
169179 P .p .errorLog ("Disable the LWC support in the config and do /brew reload" );
170180 e .printStackTrace ();
171- P .p .msg (player , "&cError opening Barrel, please report to an Admin!" );
181+ if (player .hasPermission ("brewery.admin" ) || player .hasPermission ("brewery.mod" )) {
182+ P .p .msg (player , "&cLWC check Error, Brewery was tested with up to v4.5.0 of LWC" );
183+ P .p .msg (player , "&cSet &7useLWC: false &cin the config and /brew reload" );
184+ } else {
185+ P .p .msg (player , "&cError opening Barrel, please report to an Admin!" );
186+ }
172187 return false ;
173188 }
174189 }
@@ -190,7 +205,11 @@ public boolean hasPermsOpen(Player player, PlayerInteractEvent event) {
190205 P .p .errorLog ("Brewery was tested with version 3.9.1 of Citadel!" );
191206 P .p .errorLog ("Disable Citadel support in the config and do /brew reload" );
192207 e .printStackTrace ();
193- P .p .msg (player , "&cError opening Barrel, please report to an admin!" );
208+ if (player .hasPermission ("brewery.admin" ) || player .hasPermission ("brewery.mod" )) {
209+ P .p .msg (player , "&cCitadel check Error, Brewery was tested with up to v3.9.1 of Citadel" );
210+ } else {
211+ P .p .msg (player , "&cError opening Barrel, please report to an Admin!" );
212+ }
194213 return false ;
195214 }
196215 }
@@ -213,7 +232,12 @@ public boolean hasPermsDestroy(Player player) {
213232 P .p .errorLog ("Brewery was tested with version 4.5.0 of LWC!" );
214233 P .p .errorLog ("Disable the LWC support in the config and do /brew reload" );
215234 e .printStackTrace ();
216- P .p .msg (player , "&cError breaking Barrel, please report to an Admin!" );
235+ if (player .hasPermission ("brewery.admin" ) || player .hasPermission ("brewery.mod" )) {
236+ P .p .msg (player , "&cLWC check Error, Brewery was tested with up to v4.5.0 of LWC" );
237+ P .p .msg (player , "&cSet &7useLWC: false &cin the config and /brew reload" );
238+ } else {
239+ P .p .msg (player , "&cError breaking Barrel, please report to an Admin!" );
240+ }
217241 return false ;
218242 }
219243 }
0 commit comments