Fix exploit.
This commit is contained in:
parent
c1752477c7
commit
b7c34840cd
@ -15,7 +15,7 @@ public class FactionsExploitListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL)
|
@EventHandler(priority = EventPriority.NORMAL)
|
||||||
public void obsidianGenerator(BlockFromToEvent event) {
|
public void obsidianGenerator(BlockFromToEvent event) {
|
||||||
if (event.isCancelled() == true || !Conf.handleExploitObsidianGenerators) {
|
if (event.isCancelled() || !Conf.handleExploitObsidianGenerators) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ public class FactionsExploitListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL)
|
@EventHandler(priority = EventPriority.NORMAL)
|
||||||
public void enderPearlTeleport(PlayerTeleportEvent event) {
|
public void enderPearlTeleport(PlayerTeleportEvent event) {
|
||||||
if (event.isCancelled() == true || !Conf.handleExploitEnderPearlClipping) {
|
if (event.isCancelled() || !Conf.handleExploitEnderPearlClipping) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (event.getCause() != PlayerTeleportEvent.TeleportCause.ENDER_PEARL) {
|
if (event.getCause() != PlayerTeleportEvent.TeleportCause.ENDER_PEARL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user