2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-12-23 02:28:01 +00:00
Commit Graph

629 Commits

Author SHA1 Message Date
7f35b64d93
stupid git 2024-05-13 02:00:31 +04:00
3dc3d80045
update github workflow 2024-05-13 01:56:38 +04:00
765e6fe122
redo module system 2024-05-13 01:54:50 +04:00
e8514b3e8b
0.12.3 snapshot 2024-05-13 01:02:29 +04:00
e1d401639e
even more oops: why caches are set to 1 hour ._. 2024-05-07 20:42:33 +04:00
f8c304d441
oops: remove cache of last-online
i must forgotten to remove it during development
2024-05-07 20:37:16 +04:00
e6b789229c
bump version 0.12.2 2024-05-06 21:30:55 +04:00
025b555457
maven publish commands aswell 2024-05-06 21:27:37 +04:00
7029552c02
clarify compatibility mode error 2024-05-06 15:24:10 +04:00
62007992a7
bump 0.12.2-snapshot 2024-05-06 15:20:34 +04:00
8a6d97e923
bump to 0.12.1 2024-04-28 23:33:07 +04:00
a65b1cdf5c
fix: adventure api version was replaced by guava 2024-04-28 23:32:08 +04:00
25441a5122
update .github/workflow/gradle.yml branch name 2024-04-28 23:18:01 +04:00
b9c7c31c09
oops: forgot to cache uuids/name of joined player 2024-04-28 23:16:19 +04:00
27358d2f5f
change big uuid cache message to include the '/rb clean' 2024-04-28 23:16:18 +04:00
c736f39e7f
bump version to 0.12.1-snapshot 2024-04-28 23:16:18 +04:00
7b90a34fae
Update README.md 2024-04-28 20:36:09 +04:00
1593c2d628
0.12.0 (#86)
## NOTES
data system shouldn't effect anybody, unless you do any direct query to
Redis query data, you should adapt the changes, by viewing classes
`ProxyDataManager` and `PlayerDataManager`

# Changes 
* RedisBungee is compiled with `java 17` now, Due java 11 support is
ending at end of September
* config version is now `2` which will reset your config if older
version
* Adventure API is included inside RedisBungee API
* new Language infrastructure for RedisBungee built-in messages #85
*commands not included yet*
* New data system which replaces Redis PubSub with Redis Streams *see
below*
* Ability to connect player to last server they where on using an config
option #84
* new environment variable `REDISBUNGEE_PROXY_ID` which can be set
before launch
* new environment variable `REDISBUNGEE_NETWORK_ID` which can be set
before launch
* RedisBungee requires redis version 6.2 or above  #88 
* Better command system
https://github.com/ProxioDev/RedisBungee/issues/93

## New data system
Due limitation of Redis PubSub in Cluster environment, Internals of
RedisBungee were changed to support Redis Streams
- Network Ids
  - networks ids used to group network proxies
    - example having 'test' network and 'main' network
- Networks in the same redis server / cluster share the same UUID cache
- Heartbeat system:
- RedisBungee old heartbeat system used hastset on redisbungee to store
the current unix time of the proxy to check what every proxy died or
not, now instead we publish the heartbeat using unix time, and online
count to proxy which proxy store it in their memory, which allow the
`get number of online players` to be faster than pooling whole list in
old data system.

- PubSub
- since redisbungee was initially designed with pubsub in mind,
registration no longer required now for event to fire, see the api
changes below.

## Commands System
* rewritten using [acf lib](https://github.com/aikar/commands) to be
platform independent
* new command `/rb` or `/redisbungee` with sub commands `help`, `info`,
'clean', 'show'.

* 'rb'
  * '/rb' and '/rb info'

![image](https://github.com/ProxioDev/RedisBungee/assets/34905970/70796ab0-b5fd-4578-8c93-c976e517df95)

  * '/rb show'
  

![image](https://github.com/ProxioDev/RedisBungee/assets/34905970/56332c37-701f-43e0-946b-6894b845fab3)

* configuration to disable or override each command from legacy to new
introduced one `/rb`
```yaml

# For redis bungee legacy commands
# either can be run using '/rbl glist' for example
# or if 'install' is set to true '/glist' can be used.
# 'install' also overrides the proxy installed commands
#
# In legacy commands each command got it own permissions since they had it own permission pre new command system,
# so it's also applied to subcommands in '/rbl'.
commands:
  # Permission redisbungee.legacy.use
  redisbungee-legacy:
    enabled: false
    subcommands:
        # Permission redisbungee.command.glist
        glist:
          enabled: false
          install: false
        # Permission redisbungee.command.find
        find:
          enabled: false
          install: false
        # Permission redisbungee.command.lastseen
        lastseen:
          enabled: false
          install: false
        # Permission redisbungee.command.ip
        ip:
          enabled: false
          install: false
        # Permission redisbungee.command.pproxy
        pproxy:
          enabled: false
          install: false
        # Permission redisbungee.command.sendtoall
        sendtoall:
          enabled: false
          install: false
        # Permission redisbungee.command.serverid
        serverid:
          enabled: false
          install: false
        # Permission redisbungee.command.serverids
        serverids:
          enabled: false
          install: false
       # Permission redisbungee.command.plist
        plist:
          enabled: false
          install: false
  # Permission redisbungee.command.use
  redisbungee:
    enabled: true
```

## API changes
- Kick api Deprecated: 
  - `kickPlayer(String playerName, String message) `
  - `kickPlayer(UUID playerUUID, String message) `

- newer where added using adventure api:
  - `kickPlayer(String playerName, Component message) `
  - `kickPlayer(UUID playerUUID, Component message) `

-  PubSub registration api Deprecated:
```java
/**
     * Register (a) PubSub channel(s), so that you may handle PubSubMessageEvent for it.
     *
     * @param channels the channels to register
     * @since 0.3
     * @deprecated No longer required
     */
    @Deprecated
    public final void registerPubSubChannels(String... channels) {
    }

    /**
     * Unregister (a) PubSub channel(s).
     *
     * @param channels the channels to unregister
     * @since 0.3
     * @deprecated No longer required
     */
    @Deprecated
    public final void unregisterPubSubChannels(String... channels) {
    }

```
# Contributors

* `summoncraft.us` for running this branch in production
* @SrBedrock for providing [Brazilian
Portuguese](https://en.wikipedia.org/wiki/Brazilian_Portuguese)
translation #87
 
# issues
closes #84 
closes #88 
closes #92 
closes #81
closes #93

---------

Signed-off-by: mohammed jasem alaajel <xrambad@gmail.com>
Co-authored-by: ThiagoROX <51332006+SrBedrock@users.noreply.github.com>
2024-04-28 15:29:53 +04:00
5c4de82714 jitpack java 17] 2024-04-12 22:28:25 +04:00
9e48e472a6 0.11.4: maintenance update 2024-04-12 22:08:44 +04:00
b04e13136b github worker java 17 2024-04-12 22:05:30 +04:00
8821d3995c rename github workflow 2024-04-12 21:49:54 +04:00
9218e6ad42 update jedis 2024-04-12 21:42:32 +04:00
fa6bcf7cb8 update to 3.3.0-SNAPSHOT velocity 2024-04-12 19:34:20 +04:00
830b930394 credit source of ISSUE_TEMPLATE 2024-04-12 18:56:20 +04:00
450b0ee396 new issue template 2024-04-12 18:55:51 +04:00
dd4cc2a5bb
remove matrix support 2023-12-27 02:07:33 +04:00
fd3aa51288
bump version 0.11.3 (#83) 2023-07-18 04:53:10 +04:00
Daniël Voort
99941c733f
Use PlayerDB.co for name lookups (#82)
I noticed that currently name lookups for UUIDs that are not cached, are
not supported in RedisBungee due to Mojang removing name history.

When looking at the usages, RedisBungee internally only uses the current
name (So no need for full name history), so I moved name lookups to
[PlayerDB](https://playerdb.co/), which does not have API rate limits
unlike Mojang's API.

closes #59
2023-07-18 04:48:20 +04:00
7fb9c4689e
0.11.2 (#77)
- update gradle wrapper

- include a copy of RedisBungee LICENSE inside API resources folder.

- Fix depends issues on Older versions of Bungeecord proxy *travertine*

- Bump version 0.11.2
2023-06-03 15:30:48 +04:00
5066a18dd7
uncomment disable-kick-when-online in the config and make it false by default (#75)
closes #74
2023-05-02 20:14:58 +04:00
265933f36e
fix Velocity plugin startup / shutdown issues, java docs notes for some classes and logs for shutdown / startup (#73)
closes #71
2023-04-25 11:09:45 +04:00
mohammed Alteniji
9a583369e8
oops forgot to fix repo for gradle kotlin dsl 2023-04-16 23:02:36 +04:00
mohammed Alteniji
d9e5a21c14
Update README.md 2023-04-16 22:58:41 +04:00
mohammed Alteniji
4f43c98c87
reorder config.yml of redisbungee 2023-04-15 21:29:06 +04:00
26b58252eb
oops remove password warn from the username 2023-04-13 03:06:16 +04:00
mohammed Alteniji
73879640e5
add ability to use redisbungee with acl username (#69) 2023-04-12 22:40:01 +04:00
mohammed Alteniji
c5040c9348
Update README.md 2023-04-12 20:26:06 +04:00
mohammed Alteniji
9ca72ff921
Update README.md 2023-04-10 01:56:35 +04:00
9050264b4d
make velocity ping event execute as Last to prevent motd plugins changing online players 2023-04-10 01:48:20 +04:00
mohammed Alteniji
5b5f748cc9
fix wrong maven publishing error 2023-04-06 19:26:37 +04:00
mohammed Alteniji
47127c8520
Javadocs links update (#67) 2023-03-25 19:46:22 +04:00
mohammed Alteniji
b857bdb771
update to gradle (#66) 2023-03-23 15:42:59 +04:00
0f0f707ef7
bump version 2023-03-17 12:23:46 +04:00
441a12bb36
fix error being thrown getServerFor in Bungeecord/Velocity in the api closes #64
when plugins messing around with proxy internals (eg: limboapi) the field server in redis data of the player set to null which can become problematic for velocity due checking of null in velocity but i applied the same stuff to the bungeecord version aswell and document it in the javadocs
2023-03-17 12:15:10 +04:00
冰砚炽
0534970368
Fix PlayerList not returning server name when it is not ALL (#62) 2023-01-31 12:40:06 +04:00
20f9143ea5
bump version 2022-12-31 07:26:05 +04:00
1a2459b64e
deprecated NameFetcher api 2022-12-31 07:23:35 +04:00
AlessioDP
c3888c8f65
Fix NullPointerException due plugin instance for jedis tasks in UUIDTranslator/AbstractDataManager (#57) 2022-12-25 06:26:53 +04:00
c8362a44ec
add config option to restore old kick behavior pre 0.9.0 2022-11-27 12:29:13 +04:00