2
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
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: Duplicate Name Control  (Read 12909 times)

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Duplicate Name Control
« on: September 20, 2006, 01:34:24 PM »

This plugin checks for duplicate names and the infamous 'Unknown Soldier'.
It will warn all dupes and Unknowns and penalize them after 3 warnings.

Quote
###################################################################################
#
# Plugin for B3 (www.bigbrotherbot.com)
# (c) 2005 www.xlr8or.com (mailto:[email protected])
#
# This program is free software and licensed under the terms of
# the GNU General Public License (GPL), version 2.
#
# http://www.gnu.org/copyleft/gpl.html
###################################################################################

DupeName (v1.0.0b4) beta4
###################################################################################

This plugin checks for duplicate names and the infamous 'Unknown Soldier'.
It will warn all dupes and Unknowns and penalize them after 3 warnings.

This plugin uses the 'badname' warning defined in b3/conf/plugin_admin.xml
I strongly suggest you modify the warning so clients are properly informed.

<set name="badname">1h, ^7No empty, duplicate, potentially offensive, or annoying names. ^1Rename yourself!^7</set>


Requirements:
###################################################################################

- B3 version 1.1.0 or higher


Installation:
###################################################################################

1. Unzip the contents of this package into your B3 folder. It will
place the .py file in b3/extplugins and the config file .xml in
your b3/extplugins/conf folder.

2. Open the .xml file with your favorit editor and modify the
levels if you want them different. Do not edit the command-names
for they will not function under a different name.

3. Open your B3.xml file (in b3/conf) and add the next line in the
<plugins> section of the file:

<plugin name="dupename" priority="12" config="@b3/extplugins/conf/dupename.xml"/>

The numer 12 in this just an example. Make sure it fits your
plugin list.


Changelog
###################################################################################
v1.0.0         : Initial release


###################################################################################
xlr8or - 26 jan 2006 - www.bigbrotherbot.com // www.xlr8or.com

Download the latest version here: http://ftp.snt.utwente.nl/pub/games/bigbrotherbot/plugins/dupename-v1.0.0b4.zip
« Last Edit: November 12, 2010, 08:21:30 PM by xlr8or »

Offline jensus

  • Newbie
  • *
  • Posts: 4
    • -=HHK=-FunClan
Re: Duplicate Name Control
« Reply #1 on: December 23, 2009, 09:41:01 AM »
THX for Plugins,

The DL Link doesnt work.

Code: [Select]
http://ftp//ftp.snt.utwente.nl/pub/games/bigbrotherbot/plugins/dupename-v1.0.0b4.zip

Better:
Code: [Select]
ftp://ftp.snt.utwente.nl/pub/games/bigbrotherbot/plugins/dupename-v1.0.0b4.zip
-=HHK=-Jensus(GER)

http://www.hhk-funclan.de

Offline dakotaboul123

  • Sr. Member
  • ****
  • Posts: 182
Re: Duplicate Name Control
« Reply #2 on: March 07, 2010, 11:21:13 PM »
Does it ban them annoying name changers?

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: Duplicate Name Control
« Reply #3 on: March 09, 2010, 11:09:06 AM »
nope

Offline Kid Cudi

  • Jr. Member
  • **
  • Posts: 27
Re: Duplicate Name Control
« Reply #4 on: June 15, 2011, 01:56:56 PM »
which game supports ?

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duplicate Name Control
« Reply #5 on: June 15, 2011, 02:17:19 PM »
Should work for all of them...
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline karelkopp

  • Jr. Member
  • **
  • Posts: 37
Re: Duplicate Name Control
« Reply #6 on: August 20, 2011, 03:20:30 PM »
Download links not working please repair this link thanks

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duplicate Name Control
« Reply #7 on: August 22, 2011, 02:41:06 PM »
Download links not working please repair this link thanks

Try:
Code: [Select]
ftp://ftp.snt.utwente.nl/pub/games/bigbrotherbot/plugins/dupename-v1.0.0b4.zip
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline beepbeep

  • Full Member
  • ***
  • Posts: 71
Re: Duplicate Name Control
« Reply #8 on: September 20, 2011, 08:13:53 PM »
by unknown soldier do you mean people that name themselves " . " or a single number?

if so this plugin would save me alot of hassle

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duplicate Name Control
« Reply #9 on: September 20, 2011, 08:52:14 PM »
I THINK it means people who named themself unknown solider... a default in URT...

As for . you should add it as a bad name in the censor plugin and they will get kicked.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Spinnzz

  • Jr. Member
  • **
  • Posts: 25
Re: Duplicate Name Control
« Reply #10 on: February 28, 2013, 07:16:45 PM »
This plugin should work for black ops aswell? Installed the plugin following the instructions, but no one is getting kicked :/ It should kick "Unknown Soldier 9" aswell?

Got 5 unknown soldiers right now ._.

Offline Spinnzz

  • Jr. Member
  • **
  • Posts: 25
Re: Duplicate Name Control
« Reply #11 on: March 04, 2013, 12:52:38 AM »
SO.. this plugin is only warning people with the name "Unknown Soldier", but not the people with "Unknown Soldier 2", "Unknown Soldier 3" etc.

Should it actually warn everyone with "Unknown Soldier" in their name?

Using it on my Blops servers btw.

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duplicate Name Control
« Reply #12 on: March 04, 2013, 05:24:12 PM »
What you can do is add unknown solider as a bad name in the censor plugin, that way to you can catch any and all forms of it provided you add it correctly.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Spinnzz

  • Jr. Member
  • **
  • Posts: 25
Re: Duplicate Name Control
« Reply #13 on: March 05, 2013, 07:58:03 AM »
Could you explain that some more? :P

At the moment Im not using the censor plugin since leaving it on makes the server go empty pretty fast :P


Code: [Select]
badname name="admin">
<regexp>[a@]dm[1i!]n</regexp>
</badname>

Can I change that into "Unknown Soldier" instead? And wth is regexp? :P

Since you wrote "provided you add it correctly." then Im thinking it may involve alot more modification?

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duplicate Name Control
« Reply #14 on: March 05, 2013, 04:11:59 PM »
Well, let me clarify a bit.

The plugin code states
Code: python [Select]

 for pname,cidlist in d.items():
        if (self._checkdupes and len(cidlist) > 1) or (self._checkunknown and (pname == 'Unknown Soldier' or pname == 'UnnamedPlayer')):


That code means it only searches for Unknown Soldier and UnnamedPlayer. We can hack the code and add in more stuff if you want.

As far as I can tell it also checks if 2 people have the same name.

In my next reply I will give you the code for the censor plugin.
« Last Edit: March 05, 2013, 04:19:30 PM by MordyT »
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

 


Rate this page +1 at Google Search