thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
The creator of these plugins has not shown activity in a while. Posting in this board may not result in a fast reply or a reply at all. [ Read the full Support Disclaimer here ]
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!

Author Topic: NickReg - Registers Nicks  (Read 20949 times)

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
NickReg - Registers Nicks
« on: July 25, 2009, 11: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, 08:50:13 PM by Ismael »

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: NickReg - Registers Nicks
« Reply #1 on: August 25, 2009, 08:44:30 PM »
Updated.
Fixes problems with nicks that contain '

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: NickReg - Registers Nicks
« Reply #2 on: August 25, 2009, 09:22:09 PM »
Nice plugin!

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: NickReg - Registers Nicks
« Reply #3 on: August 26, 2009, 07:47:37 AM »
Ty  ;D

Offline Anubis

  • Sr. Member
  • ****
  • Posts: 228
    • g4g.pl
Re: NickReg - Registers Nicks
« Reply #4 on: September 09, 2009, 02:57:35 PM »
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 :) Would you like to see it? (It's not 100% finished, just 97% - however it's working fine).

Offline UniversalRose

  • Jr. Member
  • **
  • Posts: 44
Re: NickReg - Registers Nicks
« Reply #5 on: October 05, 2009, 10: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?

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: NickReg - Registers Nicks
« Reply #6 on: October 06, 2009, 06:51:28 AM »
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.

Offline UniversalRose

  • Jr. Member
  • **
  • Posts: 44
Re: NickReg - Registers Nicks
« Reply #7 on: October 06, 2009, 01:49:59 PM »
Looking forward to next update, Ismael  :)

Offline rocknrolla

  • Newbie
  • *
  • Posts: 5
Re: NickReg - Registers Nicks
« Reply #8 on: October 07, 2009, 07:46:28 AM »
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 07, 2009, 08:02:20 AM by rocknrolla »

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: NickReg - Registers Nicks
« Reply #9 on: October 07, 2009, 08:04:01 AM »
Yeah, an sql statement:

Code: sql [Select]

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

Offline rocknrolla

  • Newbie
  • *
  • Posts: 5
Re: NickReg - Registers Nicks
« Reply #10 on: October 07, 2009, 08:15:33 AM »
Yeah, an sql statement:

Code: sql [Select]

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)

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: NickReg - Registers Nicks
« Reply #11 on: October 09, 2009, 10: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.

Offline Anubis

  • Sr. Member
  • ****
  • Posts: 228
    • g4g.pl
Re: NickReg - Registers Nicks
« Reply #12 on: October 17, 2009, 01:18:33 AM »
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.

Offline Ismael

  • Moderator
  • Full Member
  • *
  • Posts: 70
Re: NickReg - Registers Nicks
« Reply #13 on: January 14, 2010, 08:50:46 PM »
New features:

!findnick
Find who is using a given nickname

!removenick or !remnick
De-register that player.

Both commands are for admins.

Offline Anubis

  • Sr. Member
  • ****
  • Posts: 228
    • g4g.pl
Re: NickReg - Registers Nicks
« Reply #14 on: February 26, 2010, 12:17:09 AM »
hi

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

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

have phun

>>> Download <<<

regards

 


Rate this page +1 at Google Search