[WIP] NoNameKick build 3 (added wildcards)

Share interesting stuff you have found or created yourself.
Post Reply
User avatar
UT Sniper (SJA94)
Inhuman
Posts: 753
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: Retard
Location: England
Contact:

[WIP] NoNameKick build 3 (added wildcards)

Post by UT Sniper (SJA94) »

This package scans player names, and if they are using a name you would not like in your server this mutator will stop them from joining your server. From build 2 onward this package will now scan for patterns of characters as well, for example if you don't want anyone to have the pattern "Fart" anywhere in their name you can simply modify NoNameKick.ini and change one of the wildcards to wildCards[0]="fart". Please note that the names and wildcards are case insensitive.

By default this package will stop people joining with player, n****r, c**t, and f****t in their name.


Download version 3 https://github.com/scottadkin/KickBadNa ... s/tag/v0.3
NoNameKick3.zip
Alternative download
(7.27 KiB) Downloaded 17 times

Version 3 fixes the kick messages not being displayed after the match has started.

Installation

- Place NoNameKick2.u, and NoNameKick2.ini in your UnrealTournament System folder.
- Open UnrealTournament.ini and find the block called **[Engine.GameEngine]**, or if your server is running XC_Engine **[XC_Engine.XC_GameEngine]**.
- Added the following line at the end of the block: **ServerActors=NoNameKick2.NoNameKickServerActor**.


Kick results

If a player has a banned name they will be show this message:

Image

If a players name contains a banned pattern they will be show this message:

Image

Changing banned names

If you would like to add or remove a name from the bad names list you can do that by opening NoNameKick.ini and changing the list of names.

Changing badNames[0] to Ooper instead of player, will kick people with the name Ooper and now allow the name player.

If you would like a certain pattern of characters to not be allowed in names, simply change one of the wildcards[number]="" to wildcards[number]="badword".

Code: Select all

[NoNameKick2.KickNoNames]
kickMessagePrefix="[NoNameKick]:"
kickMessageStart="You got kicked for using an illegal name."
kickMessageEnd="You can join the server once you changed your name."
kickMessages[0]="You can't join the server with your current name."
kickMessages[1]="You can't join the server with "
kickMessages[2]=" in your name."
kickMessages[3]=""
kickMessages[4]=""
kickMessages[5]=""
kickMessages[6]=""
kickMessages[7]=""
kickMessages[8]=""
kickMessages[9]=""
wildCards[0]="player"
wildCards[1]="nigger"
wildCards[2]="faggot"
wildCards[3]=""
wildCards[4]=""
wildCards[5]=""
wildCards[6]=""
wildCards[7]=""
wildCards[8]=""
wildCards[9]=""
wildCards[10]=""
wildCards[11]=""
wildCards[12]=""
wildCards[13]=""
wildCards[14]=""
wildCards[15]=""
wildCards[16]=""
wildCards[17]=""
wildCards[18]=""
wildCards[19]=""
wildCards[20]=""
wildCards[21]=""
wildCards[22]=""
wildCards[23]=""
wildCards[24]=""
wildCards[25]=""
wildCards[26]=""
wildCards[27]=""
wildCards[28]=""
wildCards[29]=""
wildCards[30]=""
wildCards[31]=""
badNames[0]="Cunt"
badNames[1]="player1"
badNames[2]="player2"
badNames[3]="player3"
badNames[4]="player4"
badNames[5]="player5"
badNames[6]="player6"
badNames[7]="player7"
badNames[8]="player8"
badNames[9]="player9"
badNames[10]="player10"
badNames[11]="player11"
badNames[12]="player12"
badNames[13]="player13"
badNames[14]="player14"
badNames[15]="player15"
badNames[16]="player16"
badNames[17]="player17"
badNames[18]="player18"
badNames[19]="player19"
badNames[20]="player20"
badNames[21]="player21"
badNames[22]="player22"
badNames[23]="player23"
badNames[24]="player24"
badNames[25]="player25"
badNames[26]="player26"
badNames[27]="player27"
badNames[28]="player28"
badNames[29]="player29"
badNames[30]="player30"
badNames[31]="player31"
badNames[32]="player32"
badNames[33]=""
badNames[34]=""
badNames[35]=""
badNames[36]=""
badNames[37]=""
badNames[38]=""
badNames[39]=""
badNames[40]=""
badNames[41]=""
badNames[42]=""
badNames[43]=""
badNames[44]=""
badNames[45]=""
badNames[46]=""
badNames[47]=""
badNames[48]=""
badNames[49]=""
badNames[50]=""
badNames[51]=""
badNames[52]=""
badNames[53]=""
badNames[54]=""
badNames[55]=""
badNames[56]=""
badNames[57]=""
badNames[58]=""
badNames[59]=""
badNames[60]=""
badNames[61]=""
badNames[62]=""
badNames[63]=""
badNames[64]=""
badNames[65]=""
badNames[66]=""
badNames[67]=""
badNames[68]=""
badNames[69]=""
badNames[70]=""
badNames[71]=""
badNames[72]=""
badNames[73]=""
badNames[74]=""
badNames[75]=""
badNames[76]=""
badNames[77]=""
badNames[78]=""
badNames[79]=""
badNames[80]=""
badNames[81]=""
badNames[82]=""
badNames[83]=""
badNames[84]=""
badNames[85]=""
badNames[86]=""
badNames[87]=""
badNames[88]=""
badNames[89]=""
badNames[90]=""
badNames[91]=""
badNames[92]=""
badNames[93]=""
badNames[94]=""
badNames[95]=""
badNames[96]=""
badNames[97]=""
badNames[98]=""
badNames[99]=""
badNames[100]=""
badNames[101]=""
badNames[102]=""
badNames[103]=""
badNames[104]=""
badNames[105]=""
badNames[106]=""
badNames[107]=""
badNames[108]=""
badNames[109]=""
badNames[110]=""
badNames[111]=""
badNames[112]=""
badNames[113]=""
badNames[114]=""
badNames[115]=""
badNames[116]=""
badNames[117]=""
badNames[118]=""
badNames[119]=""
badNames[120]=""
badNames[121]=""
badNames[122]=""
badNames[123]=""
badNames[124]=""
badNames[125]=""
badNames[126]=""
badNames[127]=""
badNames[128]=""
badNames[129]=""
badNames[130]=""
badNames[131]=""
badNames[132]=""
badNames[133]=""
badNames[134]=""
badNames[135]=""
badNames[136]=""
badNames[137]=""
badNames[138]=""
badNames[139]=""
badNames[140]=""
badNames[141]=""
badNames[142]=""
badNames[143]=""
badNames[144]=""
badNames[145]=""
badNames[146]=""
badNames[147]=""
badNames[148]=""
badNames[149]=""
badNames[150]=""
badNames[151]=""
badNames[152]=""
badNames[153]=""
badNames[154]=""
badNames[155]=""
badNames[156]=""
badNames[157]=""
badNames[158]=""
badNames[159]=""
badNames[160]=""
badNames[161]=""
badNames[162]=""
badNames[163]=""
badNames[164]=""
badNames[165]=""
badNames[166]=""
badNames[167]=""
badNames[168]=""
badNames[169]=""
badNames[170]=""
badNames[171]=""
badNames[172]=""
badNames[173]=""
badNames[174]=""
badNames[175]=""
badNames[176]=""
badNames[177]=""
badNames[178]=""
badNames[179]=""
badNames[180]=""
badNames[181]=""
badNames[182]=""
badNames[183]=""
badNames[184]=""
badNames[185]=""
badNames[186]=""
badNames[187]=""
badNames[188]=""
badNames[189]=""
badNames[190]=""
badNames[191]=""
badNames[192]=""
badNames[193]=""
badNames[194]=""
badNames[195]=""
badNames[196]=""
badNames[197]=""
badNames[198]=""
badNames[199]=""
badNames[200]=""
badNames[201]=""
badNames[202]=""
badNames[203]=""
badNames[204]=""
badNames[205]=""
badNames[206]=""
badNames[207]=""
badNames[208]=""
badNames[209]=""
badNames[210]=""
badNames[211]=""
badNames[212]=""
badNames[213]=""
badNames[214]=""
badNames[215]=""
badNames[216]=""
badNames[217]=""
badNames[218]=""
badNames[219]=""
badNames[220]=""
badNames[221]=""
badNames[222]=""
badNames[223]=""
badNames[224]=""
badNames[225]=""
badNames[226]=""
badNames[227]=""
badNames[228]=""
badNames[229]=""
badNames[230]=""
badNames[231]=""
badNames[232]=""
badNames[233]=""
badNames[234]=""
badNames[235]=""
badNames[236]=""
badNames[237]=""
badNames[238]=""
badNames[239]=""
badNames[240]=""
badNames[241]=""
badNames[242]=""
badNames[243]=""
badNames[244]=""
badNames[245]=""
badNames[246]=""
badNames[247]=""
badNames[248]=""
badNames[249]=""
badNames[250]=""
badNames[251]=""
badNames[252]=""
badNames[253]=""
badNames[254]=""


Change Log
- 23/01/20 First release
- 24/01/20 Wildcard release, cleaned up code.
Last edited by UT Sniper (SJA94) on Sun Jan 26, 2020 11:31 am, edited 5 times in total.
User avatar
esnesi
Godlike
Posts: 1018
Joined: Mon Aug 31, 2015 12:58 pm
Personal rank: Dialed in.

Re: [WIP] NoNameKick

Post by esnesi »

A bit the tendency that it will remain a cat and mouse game.
As the player just chooses the name ''Player999'' and such, which you gotta add, after that he will use player1000 and so forth and so forth.

Could there be the ability to add wildcards ? Player*

Thanks for sharing!
Last edited by esnesi on Thu Jan 23, 2020 5:25 pm, edited 1 time in total.
User avatar
UT Sniper (SJA94)
Inhuman
Posts: 753
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: Retard
Location: England
Contact:

Re: [WIP] NoNameKick

Post by UT Sniper (SJA94) »

This is more or less for people who don't bother to change their name from player, people like to do it to sabotage the team balancer in CTF servers.

Yeah I could add wildcards, be pretty easy to add a list of wildcards that will get players kicked for containing them in their name. I will probably do it tomorrow morning.


----------- EDIT -------------------


New build released with wildcards: https://github.com/scottadkin/KickBadNa ... s/tag/v0.2

Updated first post.
User avatar
UT Sniper (SJA94)
Inhuman
Posts: 753
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: Retard
Location: England
Contact:

Re: [WIP] NoNameKick build 3 (added wildcards)

Post by UT Sniper (SJA94) »

Updated first post.


Version 3 fixes the kick messages not being displayed after the match has started.

Download version 3 https://github.com/scottadkin/KickBadNa ... s/tag/v0.3
User avatar
Que
Inhuman
Posts: 781
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...
Contact:

Re: [WIP] NoNameKick build 3 (added wildcards)

Post by Que »

Code: Select all

kickMessages[1]="You can't join the server with "
kickMessages[2]=" in your name."
Perhaps you could have a %BannedName% which could be used in KickMessages where %BannedName% = the illegal Name?
I assume that it appends the missing %BannedWildCard%/%BannedName% at the end of of KickMessages[1]?

Sorry you have been kicked because of the following "%BannedWildcard%" word used in your Name:
Please remove "%BannedWildcard% and rejoin the server.

in fact you probably don't need banned names at all and just use wildcards.
great idea BTW.
:tu:

what would be fun is if admins could replace filtered words with their own.. like Flowers,Country,Fragrance. :lol2:
*Join our Discord Here.*
Our mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
User avatar
UT Sniper (SJA94)
Inhuman
Posts: 753
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: Retard
Location: England
Contact:

Re: [WIP] NoNameKick build 3 (added wildcards)

Post by UT Sniper (SJA94) »

Que wrote: Sun Jan 26, 2020 1:57 am

Code: Select all

kickMessages[1]="You can't join the server with "
kickMessages[2]=" in your name."
Perhaps you could have a %BannedName% which could be used in KickMessages where %BannedName% = the illegal Name?
I assume that it appends the missing %BannedWildCard%/%BannedName% at the end of of KickMessages[1]?

Sorry you have been kicked because of the following "%BannedWildcard%" word used in your Name:
Please remove "%BannedWildcard% and rejoin the server.

in fact you probably don't need banned names at all and just use wildcards.
great idea BTW.
:tu:

what would be fun is if admins could replace filtered words with their own.. like Flowers,Country,Fragrance. :lol2:
If you look at the screenshots in the first post that's what happens already, I just concat 3 string with the wildcard in between message[1] and message[2].

The banned names in the config file I forgot to remove the player ones before uploading, wildcards are checked first then the banned names.

The replacing the filtered wildcards/names with a selection of the admins choice could be funny, I would like people called player to be called cheatingNoob, because 90% of the time people do it to get an unfair advantage with team balancers in team games.
User avatar
sektor2111
Godlike
Posts: 6403
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: [WIP] NoNameKick build 3 (added wildcards)

Post by sektor2111 »

And then I'll write something myself as long as for some security/charge/lousy reason(s) I cannot access that repository from any of my devices trying two ISP.
All I see is GitHub and by executing click on zip it says that server is busy or cannot be accessed or whatever...
Souce-code could be posted here in 7zip format. I don't get why not. If GitHub goes in outage this topic will go pointless.

Perhaps I'll combine here a sort of another Anti-Camper version but not the common one kicking sniper seekers, but addressing campers with zero health (dead campers) sitting in servers and exhausting slots for no purpose while they are gone elsewhere perhaps they aren't even in computer's room.

Edit: Done. I've got using something less protected... :| .
User avatar
UT Sniper (SJA94)
Inhuman
Posts: 753
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: Retard
Location: England
Contact:

Re: [WIP] NoNameKick build 3 (added wildcards)

Post by UT Sniper (SJA94) »

Here is an alternative download, updated first post as well.
Attachments
NoNameKick3.zip
NoNameKick3 with source code
(7.27 KiB) Downloaded 17 times
User avatar
sektor2111
Godlike
Posts: 6403
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: [WIP] NoNameKick build 3 (added wildcards)

Post by sektor2111 »

I was thinking at a XC version using two dynamic arrays and that native PawnActors... or a slow background cycle in a state code...
Post Reply