AdvancedBan icon indicating copy to clipboard operation
AdvancedBan copied to clipboard

Added velocity support

Open KikyoC opened this issue 1 year ago • 19 comments

Hello, I added velocity support and I tested it and it looks working. I checked that the /unban bug (because of not cached) is fixed.

KikyoC avatar May 13 '24 19:05 KikyoC

are the changes based off of the development branch?

Hopefuls avatar Jun 21 '24 17:06 Hopefuls

Nope I don't think, you can see here that I'm up to date with leoko dev branch here: https://github.com/KikyoC/AdvancedBan/tree/master

KikyoC avatar Jun 22 '24 08:06 KikyoC

Hey every time i ban someone with the Velocity Version of AdvancedBan i have to restart the proxy to unban them if i don't restart the proxy i get the message that this player is not banned

Bensonheimer992 avatar Jun 30 '24 14:06 Bensonheimer992

Hey every time i ban someone with the Velocity Version of AdvancedBan i have to restart the proxy to unban them if i don't restart the proxy i get the message that this player is not banned

is this related to this pull request? if no then that is known.

Hopefuls avatar Jun 30 '24 15:06 Hopefuls

Hey every time i ban someone with the Velocity Version of AdvancedBan i have to restart the proxy to unban them if i don't restart the proxy i get the message that this player is not banned

Hello, check this one, I'm waiting they response to open a second pr (because I did something stupid): https://github.com/Swordfun-Server/AdvancedBan

KikyoC avatar Jun 30 '24 16:06 KikyoC

Hey every time i ban someone with the Velocity Version of AdvancedBan i have to restart the proxy to unban them if i don't restart the proxy i get the message that this player is not banned

Hello, check this one, I'm waiting they response to open a second pr (because I did something stupid): https://github.com/Swordfun-Server/AdvancedBan

this version does not work either it still says after banning this player is not banned

Bensonheimer992 avatar Jun 30 '24 16:06 Bensonheimer992

Hey every time i ban someone with the Velocity Version of AdvancedBan i have to restart the proxy to unban them if i don't restart the proxy i get the message that this player is not banned

Hello, check this one, I'm waiting they response to open a second pr (because I did something stupid): https://github.com/Swordfun-Server/AdvancedBan

this version does not work either it still says after banning this player is not banned

I don't have this issue. i'm checking it

KikyoC avatar Jun 30 '24 16:06 KikyoC

Hey every time i ban someone with the Velocity Version of AdvancedBan i have to restart the proxy to unban them if i don't restart the proxy i get the message that this player is not banned

Hello, check this one, I'm waiting they response to open a second pr (because I did something stupid): https://github.com/Swordfun-Server/AdvancedBan

this version does not work either it still says after banning this player is not banned

I missed something. Should now work (with new release)

KikyoC avatar Jun 30 '24 17:06 KikyoC

can i still use the normal advancedban api or do i have to do something special for it to work with the velocity version ?

Bensonheimer992 avatar Jul 02 '24 12:07 Bensonheimer992

can i still use the normal advancedban api or do i have to do something special for it to work with the velocity version ?

because im trying to use the PunishEvent and nothing happens (i checked that the event is registered)

Bensonheimer992 avatar Jul 02 '24 14:07 Bensonheimer992

Hey every time i ban someone with the Velocity Version of AdvancedBan i have to restart the proxy to unban them if i don't restart the proxy i get the message that this player is not banned

Hello, check this one, I'm waiting they response to open a second pr (because I did something stupid): https://github.com/Swordfun-Server/AdvancedBan

this version does not work either it still says after banning this player is not banned

I missed something. Should now work (with new release)

?

Bensonheimer992 avatar Jul 06 '24 08:07 Bensonheimer992

Hello, I havent edited anything from the api.

KikyoC avatar Jul 07 '24 21:07 KikyoC

but the event does not get triggered

Bensonheimer992 avatar Jul 08 '24 16:07 Bensonheimer992

Hello, I havent edited anything from the api.

and maybe change the server type from BungeeCord to Velocity

Bensonheimer992 avatar Jul 09 '24 12:07 Bensonheimer992

Thanks for your effort to support velocity @KikyoC Are the changes from this PR tested and stable? Because you mentioned newer changes and a second PR above.

DevLeoko avatar Jul 12 '24 14:07 DevLeoko

Hey everyone !

I'm sorry if I don't answered on time. I get to many things in my life so that's why I'm answering late.

As I said I did something better on https://github.com/Swordfun-Server/AdvancedBan but I meged everything in this repo. I just tried and everything looks good.

KikyoC avatar Sep 01 '24 09:09 KikyoC

Hello, I just tested the Velocity support by building https://github.com/Swordfun-Server/AdvancedBan and run it on my server (velocity only)

  • mute, tempmute: OK, player can not send message after being muted
  • ban, tempban: OK, player is kicked and can not join the server after being banned

nhanledev avatar Sep 12 '24 08:09 nhanledev

Hello @KikyoC,

wanted to possibly check up on this pr as I will also be testing it on my own soon (thanks @nhanledev for already looking into it).

Though I am still unsure as to how the specific change on the caching resolves the issue with the bans not being correctly handled, do you have some insights into this?

Thank you!

Hopefuls avatar Oct 06 '24 10:10 Hopefuls

When does it get merged ?

Bensonheimer992 avatar Feb 06 '25 20:02 Bensonheimer992

When does it get merged ?

When the guy respons to the questions of @Hopefuls. Otherwise it will probably just be closed. He got asked multiple times to respond on Discord and here.

alfi0812 avatar Mar 23 '25 18:03 alfi0812

Likely an abandoned pull request due to the lack of responses from the original Creator of the PR

Hopefuls avatar Mar 23 '25 19:03 Hopefuls

Likely an abandoned pull request due to the lack of responses from the original Creator of the PR

Its Not abondoned

Bensonheimer992 avatar Mar 25 '25 14:03 Bensonheimer992

I was able to persuade the creator not to delete the fork after all and he said if there are advancedban updates he will continue to develop it

Bensonheimer992 avatar Mar 25 '25 14:03 Bensonheimer992

Hey, I'm sorry I didn't receive any notification from github about this PR. (Thanks @Bensonheimer992 for dming me on discord). I will take a look about @Hopefuls this evening because I'm at school rn (Paris TZ)

KikyoC avatar Mar 25 '25 14:03 KikyoC

So here are the new updates. It should be fine. If you said something in here and I didn't answer after 24h, do not hesitate to DM me on Discord

KikyoC avatar Mar 25 '25 20:03 KikyoC

I might create a new branch to merge into, the development branch seems to have changes that we wanted to disregard for now.

I'll get back to you if Leoko is fine with that. I'll be testing this until then though

Hopefuls avatar Mar 27 '25 19:03 Hopefuls

Checklist (I'll update and request once ready):

  • [ ] Bump to Version 2.4.0 (currently 2.3.0) or alternatively 3.0.0 due to this being a entire new major release

Hopefuls avatar Mar 27 '25 20:03 Hopefuls

Failed to unban a user that was banned in the following way:

  • banned the player "0bg" while that player was offline, using /ban 0bg
  • tried connecting, failed -> correct behaviour
  • trying to use /unban 0bg, failed as stated "player is not banned" -> incorrect behaviour

Behaviour seems to occur when:

  • player has been on the server after a restart (join and leave)
  • player is not online

This can be fixed by restarting the server, which then allows unbanning the player.

Steps to reproduce:

  • have second account join the server
  • have second account leave the server
  • attempt banning
  • observe success
  • attempt unbanning
  • observe fail
  • attempt to restart server
  • attempt unbanning
  • observe success
  • have second account join the server
  • can join

my guess is that there's an issue within saving cached punishments.

image image

Hopefuls avatar Mar 27 '25 21:03 Hopefuls

Hey, thank you for that report. I'll look it this evening

KikyoC avatar Mar 28 '25 08:03 KikyoC

btw. Server shows BungeeCord instead of Velocity

Bensonheimer992 avatar Mar 28 '25 09:03 Bensonheimer992