mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2025-01-04 18:28:18 +01:00
Merge pull request #70 from daboross/patch-1
Catch a ClassNotFoundException when PermissionsEx doesn't exist
This commit is contained in:
commit
1e30b805c2
@ -79,7 +79,12 @@ public class PlayerInformer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getMessage(Player player, String permission) {
|
public String getMessage(Player player, String permission) {
|
||||||
if (PermissionsEx.isAvailable()) {
|
boolean permissionsExAvailable = false;
|
||||||
|
try{
|
||||||
|
permissionsExAvailable = PermissionsEx.isAvailable();
|
||||||
|
} catch(ClassNotFoundException ex) {
|
||||||
|
}
|
||||||
|
if (permissionsExAvailable) {
|
||||||
PermissionUser user = PermissionsEx.getUser(player);
|
PermissionUser user = PermissionsEx.getUser(player);
|
||||||
|
|
||||||
String message;
|
String message;
|
||||||
|
Loading…
Reference in New Issue
Block a user