From 16081752ad183442604e87ec71aece222b446c91 Mon Sep 17 00:00:00 2001 From: Drc-DEV <33911680+Drc-DEV@users.noreply.github.com> Date: Mon, 18 Feb 2019 05:56:56 +0100 Subject: [PATCH] Do not check for NPC Teleportation Fixes this error: https://pastebin.com/GC2tVctc --- .../factions/listeners/FactionsPlayerListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java index d4b6ec81..f36acc47 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -654,6 +654,9 @@ public class FactionsPlayerListener implements Listener { //For Blocking Homes and Blocking Teleportation To Homes @EventHandler public void onPlayerHomeCheck(PlayerTeleportEvent event) throws Exception { + if (event.getPlayer().hasMetadata("NPC")){ + return; + } if (event.getPlayer().hasPermission("factions.homes.bypass")) { return; }