From d70a5de8292d976f09994a3fe68cb37fea848c6b Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Wed, 18 Oct 2023 15:42:35 +0400 Subject: [PATCH] Only allow 6.2 or above of redis versions --- README.md | 9 +++++---- .../minecraft/redisbungee/api/util/RedisUtil.java | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bb0a4ee..82ff3e7 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,11 @@ SpigotMC resource page: [click](https://www.spigotmc.org/resources/redisbungee.8 |:-------------:|:---------:| | 1.x.x | ✖ | | 2.x.x | ✖ | -| 3.x.x | ✔ | -| 4.x.x | ✔ | -| 5.x.x | ✔ | -| 6.x.x | ✔ | +| 3.x.x | ✖ | +| 4.x.x | ✖ | +| 5.x.x | ✖ | +| below 6.2 | ✖ | +| 6.2 or above | ✔ | | 7.x.x | ✔ | ## Implementing RedisBungee in your plugin: [![RedisBungee Build](https://github.com/proxiodev/RedisBungee/actions/workflows/maven.yml/badge.svg)](https://github.com/Limework/RedisBungee/actions/workflows/maven.yml) [![](https://jitpack.io/v/ProxioDev/redisbungee.svg)](https://jitpack.io/#ProxioDev/redisbungee) diff --git a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/util/RedisUtil.java b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/util/RedisUtil.java index 2e00c1e..3020a4a 100644 --- a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/util/RedisUtil.java +++ b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/util/RedisUtil.java @@ -13,7 +13,7 @@ public class RedisUtil { } int major = Integer.parseInt(args[0]); int minor = Integer.parseInt(args[1]); - return major >= 3 && minor >= 0; + return major >= 6 && minor >= 2; } // Ham1255: i am keeping this if some plugin uses this *IF*