thankyou
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: AutoReg  (Read 11938 times)

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
AutoReg
« on: November 09, 2010, 10:13:44 AM »
AutoReg Plugin v1.0.2

automatically puts a player in the group "user" after 25 'connections' if it did not register

and in the group "regular" after 100 'connections'

we can change the number of 'connections' in the autoreg.xml

Installation:

1. Place the autoreg.py in your ../b3/extplugins and the
autoreg.xml in your ../b3/extplugins/conf folders.

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

<plugin name="autoreg" config="@b3/extplugins/conf/autoreg.xml"/>

download -> autoreg v1.0.2

Sorry for my English
« Last Edit: November 09, 2010, 10:16:38 AM by PtitBigorneau »
PtitBigorneau

Offline Skipp107

  • Newbie
  • *
  • Posts: 7
Re: AutoReg
« Reply #1 on: February 21, 2011, 05:48:41 PM »
I just added this to my server and when players login there is no welcome message at all. What did I do wrong or how can I fix this?

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #2 on: February 21, 2011, 07:02:16 PM »
not at all


oups I have a bad english :(

I had not understood

normally are not related to the plugin welcome but post your b3.log to see where the problem
« Last Edit: February 22, 2011, 12:05:02 PM by PtitBigorneau »
PtitBigorneau

Offline Skipp107

  • Newbie
  • *
  • Posts: 7
Re: AutoReg
« Reply #3 on: February 22, 2011, 04:34:46 AM »
It appears to be working after all. It seems that I'm the only one not getting messages. Is there a point where it stops sending messages?

what does the noclevel setting do?

« Last Edit: February 22, 2011, 04:51:05 AM by Skipp107 »

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #4 on: February 22, 2011, 10:56:01 AM »
Quote
what does the noclevel setting do?


noclevel is just minimum level for use noc command
to know the number of connecting a player

by default 20 -> moderator


but for the plugin welcome this is normal
he walks a few minutes after starting b3 and there was a delay of one hour between two welcome messages for the same player

for test on you, wait a few minutes before you connect to your server after starting b3
« Last Edit: February 22, 2011, 12:04:08 PM by PtitBigorneau »
PtitBigorneau

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #5 on: May 30, 2011, 12:25:00 PM »
AutoReg Plugin v1.2

add command !autoreg for enable or disable the plugin

!autoreg [on/off]

download -> autoreg v1.2

« Last Edit: May 30, 2011, 12:28:31 PM by PtitBigorneau »
PtitBigorneau

Offline Rad

  • Jr. Member
  • **
  • Posts: 13
Re: AutoReg
« Reply #6 on: September 03, 2011, 02:16:39 AM »
This still work for the latest update?

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #7 on: September 03, 2011, 01:57:47 PM »
yes it works with the latest version of b3

why should not it? :)
PtitBigorneau

Offline lo0m

  • Newbie
  • *
  • Posts: 6
Re: AutoReg
« Reply #8 on: November 21, 2011, 08:53:25 PM »
my Autoreg is not working.
it does not register players :/
autoreg.xml:
        <set name="pluginactived">on</set>
        <set name="usernoc">2</set>


b3.log:
http://pastebin.com/ezWncsi7

i forgot to say the bug comes up with bf3 beta version
« Last Edit: November 22, 2011, 12:54:48 AM by lo0m »

Offline Mariodu62

  • Sr. Member
  • ****
  • Posts: 466
Re: AutoReg
« Reply #9 on: November 21, 2011, 10:04:40 PM »
i agree it doesn't work anymore....

but i can't understand why... Not enough selfdebug to find the issue...
I will add some ...
« Last Edit: November 21, 2011, 10:06:31 PM by Mariodu62 »

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #10 on: November 22, 2011, 04:00:15 PM »
well you already use v1.8.0 dev10 b3  and not  current b3 version (v1.7.1)

So I do not know but

in your b3.log, you have that

Code: [Select]
111121 20:34:23	ERROR	'STDERR "/b3bot/b3/storage/database.py:260: Warning: Table \'current_svars\' already exists\\n  cursor.execute(query)\\n"'
111121 20:34:23 ERROR 'STDERR "/b3bot/b3/storage/database.py:260: Warning: Table \'current_clients\' already exists\\n  cursor.execute(query)\\n"
'

This may be why it works not
PtitBigorneau

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #11 on: November 22, 2011, 08:17:16 PM »
to solve the problem using this version of the plugin

download -> autoreg v1.2.1
PtitBigorneau

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #12 on: November 24, 2011, 05:05:06 PM »
New version v1.3

works even if the group name for level1 and level2 are changed and now
can change the number of connections with command !autoreg <level1 or leve2> <number of connections>

download -> autoreg v1.3

Sorry for my English
PtitBigorneau

Offline LouK

  • Full Member
  • ***
  • Posts: 119
    • The Sni:{Per}:Jum Clan
Re: AutoReg
« Reply #13 on: March 15, 2013, 05:22:46 PM »
Hey, thanks for answer there ;)

I noticed that the bug isn't with connections, but with !mask command(when I try to mask myself, the autoreg plugin makes me regular)

I'm using 1.3
conf:
Code: [Select]
<configuration plugin="autoreg">
  <settings name="settings">
    <!--plugin actived on/off-->
    <set name="pluginactived">on</set>
    <!--number of connections for self registration (level1)-->
    <set name="noclevel1">25</set>
    <!--number of connections for self level 2 -->
    <set name="noclevel2">100</set>
    <!--min level required to use the noc command -->
    <set name="nocminlevel">10</set>
    <!--min level required to use the autoreg command -->
    <set name="adminlevel">80</set>
  </settings>
</configuration>

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: AutoReg
« Reply #14 on: March 15, 2013, 07:04:11 PM »
you can test with version 1.4

download -> autoreg v1.4
PtitBigorneau

 


Rate this page +1 at Google Search

anything