Fixed a bug with the smoke effect for the faction home and one NPE.

This commit is contained in:
Olof Larsson committed 2011-10-13 22:49:41 +02:00
1 parent 88fe43d600
commit 618c5fceed
5 files changed
+11 -12

No files matched your search

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