From 933fceba9d6ee832655922709fe581ce1e19a28f Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Sat, 16 Jul 2022 02:12:05 +0400 Subject: [PATCH] add velocity maven setup, update bungeecord section --- README.md | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d12f858..9b216d5 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ then to import for bungeecord use: ``` Second method by using jitpack [![](https://jitpack.io/v/limework/redisbungee.svg)](https://jitpack.io/#limework/redisbungee) -first, add this repository +## Setup jitpack repository ``` @@ -57,7 +57,8 @@ first, add this repository ``` -then add this in your dependencies +## [BungeeCord](https://github.com/SpigotMC/BungeeCord) +add this in your project dependencies ``` com.github.limework.redisbungee @@ -67,9 +68,40 @@ then add this in your dependencies ``` -then in your project plugin.yml add `RedisBungee` to `depends` +then in your project plugin.yml add `RedisBungee` to `depends` like this +``` +name: "yourplugin" +main: your.main.class +version: 1.0.0-SNAPSHOT +author: idk +depends: [ RedisBungee ] +``` + + +## [Velocity](https://github.com/PaperMC/Velocity) +``` + + com.github.limework.redisbungee + RedisBungee-Velocity + VERSION + provided + +``` +then to make your plugin depends on RedisBungee in make sure your Annotation have `@Dependency(id = "redisbungee")` like this +``` +@Plugin( + id = "myplugin", + name = "My Plugin", + version = "0.1.0-beta", + dependencies = { + @Dependency(id = "redisbungee") + } +) +public class PluginMainClass { + +} +``` -instructions for Velocity will be added later. ## Javadocs https://proxiodev.github.io/RedisBungee-JavaDocs/0.7.2-SNAPSHOT