Fixed a bug with the smoke effect for the faction home and one NPE.
This commit is contained in:
@ -82,6 +82,8 @@ public class PermUtil {
|
||||
*/
|
||||
public boolean has (CommandSender me, String perm)
|
||||
{
|
||||
if (me == null) return false;
|
||||
|
||||
if ( ! (me instanceof Player))
|
||||
{
|
||||
return me.hasPermission(perm);
|
||||
@ -108,7 +110,7 @@ public class PermUtil {
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if (informSenderIfNot)
|
||||
else if (informSenderIfNot && me != null)
|
||||
{
|
||||
me.sendMessage(this.getForbiddenMessage(perm));
|
||||
}
|
||||
|
Reference in New Issue
Block a user