Releases: ProxioDev/ValioBungee
0.7.0 UPDATE
EDIT: relocations has been enabled in v0.7.1
NOTE:
The update has big internal changes but it wont effect normal functionality of redis-bungee unless there is bad bugs
before implementing velocity support in v0.8
my initial testing went great and fixed some issue with payloads, Also Old plugins should work great but If by any MEANS getting JedisPool
in your plugin it will fail with NoSuchMethod
error due maven shade plugin weirdness that i removed.
looking forward for feedbacks
Changes in this update
-
API is longer depending on Bungeecord apis
-
deprecated
RedisBungeeAPI#getJedisPool()
and replaced withRedisBungeeAPI#requestJedis()
which returns instance ofJedis
reason for this that we are going implement redis sentinel or clusters in future update(JedisPool != SentinelJedisPool)
-
RedisBungeeAPI#getServerFor(UUID player)
now returnsString
which is server name instead of bungeecordnet.md_5.bungee.api.config.ServerInfo
-
Relocation was disabled due causing issues with
Jedis
importing on plugins which throwsNoSuchMethod
errors
(if you plan to use redisbungee in your plugins make sure you dont have jedis shaded ) -
Events are now platform dependent, for example
RedisBungee-BungeeEvents
will be for bungeecord
reason for this because events on some platforms like bungeecord needs to be extended By Event class
which not supported to another proxies like velocity + API must be bungeecord clean -
config option
use-random-id-string
has been removed due being useless -
added warnings when
ssl/tls
is disabled or password is empty
23:50:57 [WARNING] [RedisBungee] INSECURE setup was detected Please set password for your redis instance.
23:50:57 [WARNING] [RedisBungee] INSECURE setup was detected Please setup ssl for your redis instance.
Java docs here
Importing in your projects
way of import RedisBungee has been changed, as it needs 2 imports if you are going to use events
first, install it to your maven local repo as we don't have public maven repo.
git clone https://github.com/ProxioDev/RedisBungee.git
cd RedisBungee
mvn clean install
If you want to have RedisBungeeAPI
class
<dependency>
<groupId>com.imaginarycode.minecraft</groupId>
<artifactId>RedisBungee-API</artifactId>
<version>0.7.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
and if you want to use the events Import RedisBungee-BungeeEvents which for bungeecord
note: you need API imported too
<dependency>
<groupId>com.imaginarycode.minecraft</groupId>
<artifactId>RedisBungee-BungeeEvents</artifactId>
<version>0.7.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
new api features and bug fixes
changes and additions:
- Deprecated
RedisBungee.getApi()
, but it wont be removed to maintain old plugins - new api methods!
/**
* This gets Redis Bungee Jedis pool
*
* @return {@link JedisPool}
* @since 0.6.5
*/
public JedisPool getJedisPool() {
return this.plugin.getPool();
}
/**
* This alternative to {@link RedisBungee#getApi()}
* which now deprecated. but to maintain old plugins compatibility it won't be removed.
*
* @return the API instance.
* @since 0.6.5
*/
public static RedisBungeeAPI getRedisBungeeApi() {
return redisBungeeApi;
}
Fixed:
Hot-fix and change requirement of redis-server version
Minor bugs fixes update
Random ID UPDATE!
ADDED:
- Random server id please regenerate your config to see the new added config values
CHANGES:
- this related to last update(Changed the log output from fatal to warning)
Small bug fix update!
Fixed:
#1 Thanks @meerpaluten , @mattmalec
ssl update!
added:
- SSL support!