does not kick for weaponrestriction, why???????
does not kick for weaponrestriction, why???????
Weaponrestrictions work the same as badwords, which has been explained here
badwords, badname
so i locked your last topic. Every use of the weapon adds the number of warning points you configured to the user and when he reached a defined threshold in basics.json that action is performed. So, if you want to kick somone for a weapon on first use you need to define the amount of warning points he gets as high as a kick threshold.
Default punishment configuration in basics.json is:
"punishment": {
"actions": [
[0, "warn", {}],
[25, "kill", {}],
[50, "kick", {}],
[75, "tempban", {"time": 60}],
[100, "ban", {}]
],
If you want to instantly kick for a weapon you need to define "50" for this weapon. On the second use he will be banned permanently. If you do not wan't people to be banned you could easily change the above list to 5 = kick; 10 = kick and so on and give 5 points for weapons. Then he will be kicked on any use.
This system allows for a highly customizable and persistent punishment record for players throughout every game he has played on your servers and under influence of every misbehaviour (weaponrestrictions, badwords, manual warnings, etc.) and not just one type of it.
thank you very much, it works