mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2025-01-02 18:07:59 +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) {
|
||||
if (PermissionsEx.isAvailable()) {
|
||||
boolean permissionsExAvailable = false;
|
||||
try{
|
||||
permissionsExAvailable = PermissionsEx.isAvailable();
|
||||
} catch(ClassNotFoundException ex) {
|
||||
}
|
||||
if (permissionsExAvailable) {
|
||||
PermissionUser user = PermissionsEx.getUser(player);
|
||||
|
||||
String message;
|
||||
|
Loading…
Reference in New Issue
Block a user