Merge pull request #70 from daboross/patch-1

Catch a ClassNotFoundException when PermissionsEx doesn't exist
This commit is contained in:
zml2008 2013-07-12 19:25:09 -07:00
commit 1e30b805c2

View File

@ -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;