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