Skip to content
Browse files

I don't have a compiler.

  • Loading branch information...
wizjany committed Jan 25, 2019
1 parent d77d23f commit 9967cdf247fea34bfc0b3e4a5b1581d116b68389
@@ -19,6 +19,8 @@

package com.sk89q.worldguard.bukkit.session;

import com.sk89q.worldguard.LocalPlayer;
import com.sk89q.worldguard.bukkit.BukkitPlayer;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.session.AbstractSessionManager;
@@ -68,7 +70,7 @@ public void run() {

public boolean hasBypass(LocalPlayer player, World world) {
if (player instanceof BukkitPlayer && ((BukkitPlayer) player).hasMetadata("NPC"))
if (player instanceof BukkitPlayer && ((BukkitPlayer) player).getPlayer().hasMetadata("NPC"))
return true;
return base.hasBypass(player, world);

0 comments on commit 9967cdf

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.