Do not check for NPC Teleportation

Fixes this error: https://pastebin.com/GC2tVctc
This commit is contained in:
Drc-DEV 2019-02-18 05:56:56 +01:00 committed by GitHub
parent 23df43cce3
commit 16081752ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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