BGHDDevelopment / PlayerBalancer

The repository for the plugin PlayerBalancer
https://www.spigotmc.org/resources/55011/
MIT License
29 stars 24 forks source link

How are you using Reasons for fallback ? #11

Closed DotDebian closed 4 years ago

DotDebian commented 4 years ago

Hello Jamezrin,

I tried setting the fallback reasons to reasons=[/Sanction/, /Raison/] but it's still not working. My exact reason is:

§6§lExotic§e§lFight §8§m §r §c§lSanction §7 §6§l§r§cExclusion §cRaison §8» §7t §7

It contains both strings, and the mode is set to blacklist. Can you help me setting this ? It could help others too.

EDIT: Fixed it by using reasons=["*Sanction*"]

jamezrin commented 4 years ago

Great :) I was going to suggest that, glad you figured it out by yourself.

DotDebian commented 4 years ago

There's finally some errors when using the * wildcard. It occurs with a reason matching the regex and not matching too.

(https://hasteb.in/hitagigo.cs)

jamezrin commented 4 years ago

Try reasons=[".*Sanction.*"]

DotDebian commented 4 years ago

No more error in the console but I'm getting connected to my lobbies, filter doesn't work.

jamezrin commented 4 years ago

Can you send me your config?

DotDebian commented 4 years ago

https://hasteb.in/ufowixac.coffeescript

I want my players to be fallbacked from faction server to lobbies, only if their kick reason doesn't match "*Sanction*" because it's a moderation kick/ban.

jamezrin commented 4 years ago

Enable debug-info and tell me what it says when someone gets kicked with that reason