Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugins by Ismael (Moderator: Ismael)NickReg - Registers Nicks
Pages: [1] 2   Go Down
  Print  
Author Topic: NickReg - Registers Nicks  (Read 3763 times)
Moderator
*****
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 68
Offline Offline
« on: July 25, 2009, 01:26:14 PM »

This plugin allows you to register your nickname. No other person can use it.

By default, only level 2 users or above can register their nicks. (Configurable in nickreg.xml)

********* New functionality provided *********
!registernick or !nickreg
Registers your current nickname as yours. No other person can use it. If somebody does, they will get warns and get kicked.

!deletenick or !delnick
De-registers your nick. Use this if you don't intend to keep using that nick.

!findnick
Find who is using a given nickname

!removenick or !remnick
De-register that player.

Download:
Nickreg1.2.zip



« Last Edit: January 14, 2010, 11:50:13 AM by Ismael » Logged
 
Moderator
*****
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 68
Offline Offline
« Reply #1 on: August 25, 2009, 10:44:30 AM »

Updated.
Fixes problems with nicks that contain '
Logged
[ www.xlrstats.com ]
Project leader
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 1555
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #2 on: August 25, 2009, 11:22:09 AM »

Nice plugin!
Logged


Serving: CoD2 | CoD5 | UrT4.1
Moderator
*****
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 68
Offline Offline
« Reply #3 on: August 25, 2009, 09:47:37 PM »

Ty  Grin
Logged
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #4 on: September 09, 2009, 04:57:35 AM »

Hah, that's funny. I wrote similar plugin a bit ealier. The difference is that if player triggers the command "!registermynick" or "!rmn" this nick is not registered already. It's just a nick registration request. It stays in the DB till I accept it or refuse registration. Nick acceptance is done through new echelon tab Smiley Would you like to see it? (It's not 100% finished, just 97% - however it's working fine).
Logged

Jr. Member
**
OS: Windows
Type: Home user
Gameservers: CodUo
Posts: 40
Offline Offline
« Reply #5 on: October 05, 2009, 12:53:59 PM »

When someone is kicked for using a registered nickname which isnt his/hers, it gives this reason: This nickname isn't yours!

Would it be possible to add the nickname he/she was trying to use?
Logged
Moderator
*****
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 68
Offline Offline
« Reply #6 on: October 05, 2009, 08:51:28 PM »

Anubis plugin seems a good idea. Though, not for all use-cases (I don't use Echelon on any of my servers). If you're willing to release the code as GPL, yes, I'd like to see your code, and maybe look at what we can merge.

Universalrose: I'll add that feature in the next round of developing (when I get time). I also plan to add some commands so that admins can revoke nicks, and look who registered some nick.
Logged
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: CodUo
Posts: 40
Offline Offline
« Reply #7 on: October 06, 2009, 03:49:59 AM »

Looking forward to next update, Ismael  Smiley
Logged
Newbie
*
Posts: 5
Offline Offline
« Reply #8 on: October 06, 2009, 09:46:28 PM »

One question:

It registers the nick with the user GUIDs? right?

A few ideas:

- Request to add a password to the nick when registered (!nickreg <password>), so if the user loses his profile, he can !delnick [<nick> <password>] ---> of course <nick> is optional, and password would only be needed if the user specifies a nick argument.
- Automatically delete nicks not beeing used anymore to make room for new users (nick not used in 3 months, for example) (you can use the client.lastVisit propertie)
« Last Edit: October 06, 2009, 10:02:20 PM by rocknrolla » Logged
Dev. Team
*****
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1185
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #9 on: October 06, 2009, 10:04:01 PM »

Yeah, an sql statement:

Code: sql
DELETE FROM (nicktable) WHERE timeadd < UNIX_TIMESTAMP - 129600
, in a cron job to be run every night...
Logged

Newbie
*
Posts: 5
Offline Offline
« Reply #10 on: October 06, 2009, 10:15:33 PM »

Yeah, an sql statement:

Code: sql
DELETE FROM (nicktable) WHERE timeadd < UNIX_TIMESTAMP - 129600
, in a cron job to be run every night...
no, that would delete nick that are being used too..
i want to delete only nicks that wasn't used in X time (ex. 3 months)
Logged
Moderator
*****
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 68
Offline Offline
« Reply #11 on: October 09, 2009, 12:43:39 PM »

One question:

It registers the nick with the user GUIDs? right?

A few ideas:

- Request to add a password to the nick when registered (!nickreg <password>), so if the user loses his profile, he can !delnick [<nick> <password>] ---> of course <nick> is optional, and password would only be needed if the user specifies a nick argument.
- Automatically delete nicks not beeing used anymore to make room for new users (nick not used in 3 months, for example) (you can use the client.lastVisit propertie)

The problem with the password is that everyone can see the password when I register my nick. What keeps somebody from taking over my nick?

Auto-deletion seems like a good idea. There's no need to add anything to the nicks table, I'll just look into the associated ID.
Logged
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #12 on: October 16, 2009, 03:18:33 PM »

Anubis plugin seems a good idea. Though, not for all use-cases (I don't use Echelon on any of my servers). If you're willing to release the code as GPL, yes, I'd like to see your code, and maybe look at what we can merge.

Universalrose: I'll add that feature in the next round of developing (when I get time). I also plan to add some commands so that admins can revoke nicks, and look who registered some nick.

sorry for 'not being' online for some time... had some family issues. I will post the code soon.
Logged

Moderator
*****
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 68
Offline Offline
« Reply #13 on: January 14, 2010, 11:50:46 AM »

New features:

!findnick
Find who is using a given nickname

!removenick or !remnick
De-register that player.

Both commands are for admins.
Logged
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD4
Posts: 228
Offline Offline
WWW
« Reply #14 on: February 25, 2010, 03:17:09 PM »

hi

I know I've promised that I post my implementation soon, but ..... this 'soon' finally come Cheesy Sorry guys... life.

here is the packed source of the plugin, sql file, and PHP tab implementation for echelon..

have phun

>>> Download <<<

regards
Logged

Tags:
Pages: [1] 2   Go Up
  Print  
 
Jump to: