diff --git a/core/src/main/java/com/sekwah/advancedportals/core/permissions/PermissionBuilder.java b/core/src/main/java/com/sekwah/advancedportals/core/permissions/PermissionBuilder.java index 679af290..75360131 100644 --- a/core/src/main/java/com/sekwah/advancedportals/core/permissions/PermissionBuilder.java +++ b/core/src/main/java/com/sekwah/advancedportals/core/permissions/PermissionBuilder.java @@ -84,7 +84,7 @@ public class PermissionBuilder { } public boolean hasPermission(HasPermission sender) { - if(sender == null) { + if (sender == null) { return true; } if (Permissions.hasPermissionManager) { diff --git a/core/src/main/java/com/sekwah/advancedportals/core/services/PortalServices.java b/core/src/main/java/com/sekwah/advancedportals/core/services/PortalServices.java index f7228bd7..cb78170e 100644 --- a/core/src/main/java/com/sekwah/advancedportals/core/services/PortalServices.java +++ b/core/src/main/java/com/sekwah/advancedportals/core/services/PortalServices.java @@ -16,9 +16,8 @@ import com.sekwah.advancedportals.core.util.Lang; import com.sekwah.advancedportals.core.util.PlayerUtils; import com.sekwah.advancedportals.core.warphandler.Tag; import com.sekwah.advancedportals.core.warphandler.TriggerType; - -import javax.annotation.Nullable; import java.util.*; +import javax.annotation.Nullable; @Singleton public class PortalServices { @@ -178,7 +177,8 @@ public class PortalServices { } /** - * @param player if null it is assumed an automation is creating the portal so checks for permissions are not needed + * @param player if null it is assumed an automation is creating the portal + * so checks for permissions are not needed * @param pos1 * @param pos2 * @param tags