Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-02-24 13:06:54

goeyfun
Member
From: Mighty Japan
Joined: 2015-02-18
Posts: 667

YOlooooooooo <-- yeah how to get rid of long username

Sometimes when admins wanna kick users in a world, they failed to do so cuz some username are quite long, for example " blaaaaaaaa", but then the bot will recognize it as "blaaa". So I wanna know how would u solve this problem.
This length thing is server-side so it's not that simple to solve?

solution 1. (FAIL)

foreach users in players{
if(users.username.Startswith("bla")//target found
}

this is not accurate as if goeyfunnnnnnnn is to be kicked, goeyfunn will be kicked instead.

solution2 (Possible)

foreach users in players{
if(user.usrname.startswith("bla")TBK.Add(user.usrid);
}

tell admins which to choose?

the second solution may not be the best solution, but how would u solve this problem?


Ug3JzgO.png

Offline

#2 2015-02-24 13:09:47

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: YOlooooooooo <-- yeah how to get rid of long username

Have certain characters that will be ignored, replace ',' to '' for instance.

#kick yolooooooooo
#kick yolo,ooo,ooo,oo

Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#3 2015-02-24 13:11:00

goeyfun
Member
From: Mighty Japan
Joined: 2015-02-18
Posts: 667

Re: YOlooooooooo <-- yeah how to get rid of long username

oh, Great idea Thanks //forums.everybodyedits.com/img/smilies/big_smile


Ug3JzgO.png

Offline

#4 2015-02-24 14:45:03

BuzzerBee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 4,571

Re: YOlooooooooo <-- yeah how to get rid of long username

CupCake handles this. You could look in its source


TdQRyz3.png
https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

BuzzerBee1424785503476334

Board footer

Powered by FluxBB

[ Started around 1715041413.9946 - Generated in 0.024 seconds, 10 queries executed - Memory usage: 1.38 MiB (Peak: 1.48 MiB) ]