RediSkript - communicate between servers with ease! icon

RediSkript - communicate between servers with ease! -----

Skript addon for Redis communication between servers in Skript




Changed download back to spigotmc from selfhosted gitea for higher reliability.
----------, Apr 19, 2024

Updated dependencies for security and added ability to add/remove numbers to variables in other servers, for example:
Code (Text):
add 100 to variables "-test" and "-test2" in channel "global"
remove 100 from variable "-test" in channel "global"
add 4.5 to variable "-test" in channel "global"
Only numbers can be added/removed for now, because it does not make much sense to add/remove anything else than numbers to variables.

I have changed download URL to external, because I have issues with accessing SpigotMC, so I may not be able to frequently post updates here. External URL points to https://git.limework.net/Limework/RediSkript/releases, which will have latest releases.
----------, Mar 23, 2022

- Fixed a bug where /reloadredis command was appearing in bukkit's /help command for regular players, it's a console-only command, so I fixed it by adding a permission to it.

- Updated Jedis dependency to 3.7.0

- Some code refactoring
----------, Dec 14, 2021

It is highly recommended to update to 1.3.3 RediSkript version if you're using an older version! A bug that was around for the whole existence of the addon has been fixed.
  • Fixed a bug where /reloadredis was throwing an exception if previous connection wasn't successful

  • Fixed a bug where setting "variables::*' with redis had unexpected behavior, they now work correctly

  • Reduced default timeout from 90 seconds to 9 seconds as 90 seconds was overkill

  • Removed debugMode added by ham1255, now all exceptions will be sent to console properly, much easier to find issues

  • Increased stability of the plugin
----------, Jan 26, 2021

- Highly improved code quality

- Some very rare full disconnection issues (can't reconnect without server restart) were fixed

This update was tested in production for a month to ensure its stability

Thanks to @Ham1255Official for doing all the work on this update!
----------, Jan 18, 2021

  • Fixed a connection leak in /reloadredis, you can now finally use this command safely without it causing any issues

  • Made /reloadredis command to reload stuff asynchronously so it doesn't block server's main thread

  • Highly improved code quality
----------, Dec 3, 2020

- Added a way to SET/DELETE variables between servers! Currently ADD/REMOVE operations and multiple changers aren't supported due to that I didn't find how to support these yet without causing issues, so I'll mark this feature as BETA, it'll be improved in the future.

You already could do this with redis messages, but it was more complicated, this update makes the addon more newbie-friendly.

Managing variables:
Code (Text):
set variables "test::1", "test::2", "test::3" in channel "global" to 100
#then use this in any server that listens to "global" redis channel and was online when the above line was executed:
send "%{test::*}%" #outputs 100, 100 and 100

delete variables "test::*" in channel "global"

set variable "test::%uuid of player%" in channel "playerdata" to tool of player
#then you can in any server that is listening to "playerdata" channel and was online when the above line was executed:
give {test::%uuid of player%} to player
Syntax:
Code (Text):
variable[s] %strings% in [redis] [channel] %string%
Other Changes

- Fixed an error on server shutdown when there's high ping to redis server

- Fixed a few little bugs

- Added ability to send multiple redis messages in one go to save performance:
Code (Text):
send redis messages "hello", "bye", "hi again" to channel "welcome"
----------, Nov 28, 2020

I found a lot of issues in the last release, so it is highly recommended that you update to this version (1.2.5)
  • Fixed plugin not registering syntaxes correctly (from 1.2.2)

  • Fixed very rare server freeze possibility (noticed after using it in 4 servers over a week)
Sorry for the inconvenience, but this is my first public Java plugin, and I keep accidentally leaving some things not working correctly while trying to improve the plugin
----------, Nov 3, 2020

  • Fixed a bug where you couldn't send Redis messages in the "on skript unload" event due to the Redis connection being closed too early

  • Improved console messages

  • Improved code quality
(Reposted update because I had accidently uploaded a broken jar file)
----------, Nov 2, 2020

This update makes "on redis message" event to be synchronous, which makes the code within it thread-safe (some things didn't work correctly in this event before, due to it being asynchronous)
----------, Oct 26, 2020

WARNING: You'll have to regenerate your config and change the redis message sending syntax used in scripts!
- Added new expression: redis message date
useful if you want to get the time it took to deliver the message by using: send "%difference between now and redis message date%" to console

- Fixed a bug where redis message/redis channel expressions could be used in non-redis message events

- New command: /reloadredis
useful if you want to change your IP, port, password, encryption or channels without restarting the server (Note: it has some memory leaks currently, so shouldn't be used too often, only when really needed)
executable only by console!

- Highly improved the quality of the code

- Improved 1.8 Minecraft version compatibility, re-added org.json library as 1.8 doesn't have it, and edited the way some errors are sent to work with 1.8

- Changed the syntax, it's now: send redis message %string% to [channel] %string%
you'll have to CHANGE IT IN YOUR SCRIPTS!

- Changed the configuration, you'll have to reset your configuration and let it regenerate for it to work. I have removed "Threads" config option as I found only 1 thread to be needed, so that's a performance benefit. I've also changed MaxConnections default to 2 from 20 as I found 2 to be a well-working default and I renamed useSSL to useTLS as redis server configuration refers to it by "TLS", so better keep it consistent
----------, Oct 24, 2020

Reduced jar size from 1.2 MB to 850~ KB by removing unneeded dependencies
----------, Oct 22, 2020

Removed debug message & fixed loading of the plugin
----------, Oct 22, 2020

Resource Information
Author:
----------
Total Downloads: 1,085
First Release: Oct 22, 2020
Last Update: Apr 19, 2024
Category: ---------------
All-Time Rating:
7 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings