Do not check for NPC Teleportation
Fixes this error: https://pastebin.com/GC2tVctc
This commit is contained in:
parent
23df43cce3
commit
16081752ad
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user