Fix exploit.

This commit is contained in:
drtshock 2015-01-15 13:24:33 -06:00
parent c1752477c7
commit b7c34840cd

View File

@ -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) {