Fixed EventException in Essentials Home Patches
This commit is contained in:
parent
b1afbbf8df
commit
88b55ea866
@ -500,7 +500,7 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
boolean isHome = false;
|
boolean isHome = false;
|
||||||
for (String str : SavageFactions.plugin.ess.getUser(event.getPlayer()).getHomes()) {
|
for (String str : SavageFactions.plugin.ess.getUser(event.getPlayer()).getHomes()) {
|
||||||
Location home = SavageFactions.plugin.ess.getUser(event.getPlayer()).getHome(str);
|
Location home = SavageFactions.plugin.ess.getUser(event.getPlayer()).getHome(str);
|
||||||
if (home.getBlockX() == event.getTo().getBlockX() && home.getBlockY() == event.getTo().getBlockY() && home.getBlockZ() == event.getTo().getBlockZ()) {
|
if (home.getBlockX() == event.getTo().getBlockX() && home.getBlockZ() == event.getTo().getBlockZ()) {
|
||||||
isHome = true;
|
isHome = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user