From d9e5a21c14158814b28bc7a9c2d583a224196c52 Mon Sep 17 00:00:00 2001 From: mohammed Alteniji <34905970+ham1255@users.noreply.github.com> Date: Sun, 16 Apr 2023 22:58:41 +0400 Subject: [PATCH] Update README.md --- README.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24d61110..dbe5e0ab 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,8 @@ RedisBungee is distributed as a [Gradle](https://gradle.org/) project. By using jitpack [![](https://jitpack.io/v/ProxioDev/redisbungee.svg)](https://jitpack.io/#ProxioDev/redisbungee) -## Setup jitpack repository +# Setup jitpack repository +## maven ```xml @@ -49,16 +50,32 @@ By using jitpack [![](https://jitpack.io/v/ProxioDev/redisbungee.svg)](https://j ``` -## [BungeeCord](https://github.com/SpigotMC/BungeeCord) +## gradle (kotlin dsl) +```kotlin +maven("https://jitpack.io/") +``` + +# [BungeeCord](https://github.com/SpigotMC/BungeeCord) add this in your project dependencies +## maven ```xml com.github.proxiodev.redisbungee RedisBungee-Bungee VERSION provided + +``` +## gradle (kotlin dsl) +``` +implementation("com.github.ProxioDev.redisbungee:RedisBungee-Bungee:0.11.0") + +// USE THIS IF YOU WANT TO USE INCLUDED JEDIS LIB BECAUSE OF RELOACTION AND REMOVE THE ABOVE STATEMENT +implementation("com.github.ProxioDev.redisbungee:RedisBungee-Bungee:0.11.0:all") { + exclude("redis.clients", "jedis") +} ``` then in your project plugin.yml add `RedisBungee` to `depends` like this ```yaml @@ -71,14 +88,26 @@ depends: [ RedisBungee ] ## [Velocity](https://github.com/PaperMC/Velocity) +## maven ```xml com.github.proxiodev.redisbungee RedisBungee-Velocity VERSION provided + ``` +## gradle (kotlin dsl) +``` +implementation("com.github.ProxioDev.redisbungee:RedisBungee-Velocity:0.11.0") + +// USE THIS IF YOU WANT TO USE INCLUDED JEDIS LIB BECAUSE OF RELOACTION AND REMOVE THE ABOVE STATEMENT +implementation("com.github.ProxioDev.redisbungee:RedisBungee-Velocity:0.11.0:all") { + exclude("redis.clients", "jedis") +} +``` + then to make your plugin depends on RedisBungee, make sure your plugin class Annotation have `@Dependency(id = "redisbungee")` like this ```java @Plugin( @@ -108,6 +137,7 @@ then use any of these in your project. RedisBungee-Bungee VERSION provided + ``` ```xml @@ -116,6 +146,7 @@ then use any of these in your project. RedisBungee-Velocity VERSION provided + ``` ## Javadocs