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: Calladmin Plugin  (Read 11223 times)

Offline Sir3lit

  • Jr. Member
  • **
  • Posts: 19
Re: Calladmin Plugin
« Reply #15 on: December 20, 2014, 06:38:50 AM »
LOVE IT!!! Just a suggestion, can you make it optional to have it PM people with certain ranks?

Like in our ts we have a group for all of our admins. its group ID is 150

So somewhere in the ini file or the py have like

1 = Main Ts only
2 = PM x rank only
3 = Both
Just an idea it would be SUPER nice to have because with 40 to 90 people on one TS people start getting annoyed when the clan has 7 diffrent cod4 servers.... and its spaming the main chat :(

Thanks


Anything yet on this?

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Calladmin Plugin
« Reply #16 on: December 20, 2014, 10:42:41 AM »
Sorry, I totally forgot. I'll try to make this change in the afternoon. Thanks for bringing it up.

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Calladmin Plugin
« Reply #17 on: December 20, 2014, 07:58:10 PM »
I updated the plugin. You can download the new version from here. In the configuration file you will find a new configuration value 'msg_groupid'. You need to put there the server group which belongs to the people you want to receive the admin request message. I haven't tested it on a live environment, but tests cases should ensure that it works.

Offline TesLazZ

  • Newbie
  • *
  • Posts: 1
Re: Calladmin Plugin
« Reply #18 on: December 31, 2014, 06:26:32 PM »
Where can i find my Query port and Virtual server ID?

Thanks!

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re:
« Reply #19 on: December 31, 2014, 06:28:49 PM »
Unless u changed the port manually leave the default one. If u are running just 1 ts3 server then the virtual server id is 1. Anyway, right click on the root of the channels and select properties. You should find all the info there

Offline Xyn

  • Jr. Member
  • **
  • Posts: 27
    • Team #Lf Multigaming
Re: Calladmin Plugin
« Reply #20 on: May 03, 2015, 10:07:21 PM »
Hi,

Still have an issue with this plugin

Calladmin users receive an error "There was an error processing your command" but the request is sent to the TS3 server.
Logs show :
Code: [Select]
ERROR    'handler AdminPlugin could not handle event Say: AttributeError: \'int\' object has no attribute \'split\' [(\'/home/bot/b3/parser.py\', 1055, \'handleEvents\', \'hfunc.parseEvent(event)\'), (\'/home/bot/b3/plugin.py\', 158, \'parseEvent\', \'self.onEvent(event)\'), (\'/home/bot/b3/plugin.py\', 176, \'onEvent\', \'self.handle(event)\'), (\'/home/bot/b3/plugins/admin.py\', 296, \'handle\', \'self.OnSay(event)\'), (\'/home/bot/b3/plugins/admin.py\', 441, \'OnSay\', \'results = command.execute(data, event.client)\'), (\'/home/bot/b3/plugins/admin.py\', 2227, \'execute\', \'self.func(data, client, copy.copy(self))\'), (\'/home/bot/b3/extplugins/calladmin.py\', 424, \'cmd_calladmin\', "sent[\'ts3\'] = self.send_teamspeak_message(message)"), (\'/home/bot/b3/extplugins/calladmin.py\', 358, \'_send_personal_teamspeak_message\', "client_servergroups = [int(x) for x in clientinfo[\'client_servergroups\'].split(\',\')]")]'

Also, it looks like only 1 (sometimes 2) member from the select group receive the request (looks like random)
« Last Edit: May 03, 2015, 10:11:39 PM by Xyn »

Offline spaz-nz

  • Newbie
  • *
  • Posts: 7
Re: Calladmin Plugin
« Reply #21 on: June 01, 2015, 08:19:22 AM »
Hi, I have this plugin running on both my COD4 servers (works great!), however it does not want to work on the B3 servers running Battlefield Bad Company 2 - Relevant section of B3 Log attached. Any help appreciated! :D

150601 02:17:22 BOT     'Loading Plugin #5 calladmin [C:\\B3 Servers\\BFBC2 - DaRumbleRoom\\extplugins\\conf\\plugin_calladmin.ini]'
150601 02:17:22 INFO 'calladmin is not a built-in plugin (No module named calladmin)'
150601 02:17:22 INFO 'trying external plugin directory : C:\\B3 Servers\\BFBC2 - DaRumbleRoom\\extplugins'
150601 02:17:22 BOT     'CalladminPlugin: Loading config C:\\B3 Servers\\BFBC2 - DaRumbleRoom\\extplugins\\conf\\plugin_calladmin.ini for CalladminPlugin'
150601 02:17:22 DEBUG 'CalladminPlugin: loaded settings/treshold: 120'
150601 02:17:22 DEBUG 'CalladminPlugin: loaded settings/useirc: True'
150601 02:17:22 DEBUG 'CalladminPlugin: loaded teamspeak/ip: REMOVED
150601 02:17:22 DEBUG 'CalladminPlugin: loaded teamspeak/port: REMOVED
150601 02:17:22 DEBUG 'CalladminPlugin: loaded teamspeak/serverid: 1'
150601 02:17:22 DEBUG 'CalladminPlugin: loaded teamspeak/username: B3'
150601 02:17:22 DEBUG 'CalladminPlugin: loaded teamspeak/password: REMOVED
150601 02:17:22 DEBUG 'CalladminPlugin: setting teamspeak/msg_groupid is set to default value [-1]: admin request will be broadcasted to all the people connected to the Teamspeak 3 server (global chat area)'
150601 02:17:22 WARNING "unknown cvar 'sv_hostname'"
150601 02:17:22 ERROR 'Error loading plugin calladmin'
Traceback (most recent call last):
  File "b3\parser.pyo", line 674, in loadPlugins
  File "C:\B3 Servers\BFBC2 - DaRumbleRoom\extplugins\calladmin.py", line 116, in __init__
  File "b3\plugin.pyo", line 56, in __init__
  File "b3\plugin.pyo", line 115, in loadConfig
  File "C:\B3 Servers\BFBC2 - DaRumbleRoom\extplugins\calladmin.py", line 203, in onLoadConfig
AttributeError: 'NoneType' object has no attribute 'getString'

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Calladmin Plugin
« Reply #22 on: June 01, 2015, 08:37:43 AM »
make sure you have the latest version of the plugin. In latest, ligne 203 is a comment which seems to indicate yours isn't the latest

Offline spaz-nz

  • Newbie
  • *
  • Posts: 7
Re: Calladmin Plugin
« Reply #23 on: June 01, 2015, 09:16:25 AM »
make sure you have the latest version of the plugin. In latest, ligne 203 is a comment which seems to indicate yours isn't the latest
Thanks for the reply Courgette

I have reinstalled the plugin from the original post of this thread to make sure i am running the latest however the error still persists. I checked out line 203 in the config which is...
        self.settings['hostname'] = self.console.getCvar('sv_hostname').getString()

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Calladmin Plugin
« Reply #24 on: June 01, 2015, 01:24:17 PM »
Version 1.6 fixes the problem. Thanks for reporting this issue. You can download the ne version here: https://github.com/danielepantaleone/b3-plugin-calladmin/releases/tag/1.6

Offline spaz-nz

  • Newbie
  • *
  • Posts: 7
Re: Calladmin Plugin
« Reply #25 on: June 01, 2015, 09:25:14 PM »
Worked perfectly, Thank you!

Offline obteo

  • Sr. Member
  • ****
  • Posts: 152
    • B2KilL Clan
Re: Calladmin Plugin
« Reply #26 on: April 08, 2016, 12:58:35 PM »
Hi Fenix,

is it possible to have an addon on this mod? like opening a topic to a forum or sending the message to a database in general?

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Calladmin Plugin
« Reply #27 on: April 08, 2016, 01:01:08 PM »
Everything is possible, if you have the time to do it (which I personally don't have right now). Maybe someone else could extend this plugin making it's own version with the required changes.

Offline obteo

  • Sr. Member
  • ****
  • Posts: 152
    • B2KilL Clan
Re: Calladmin Plugin
« Reply #28 on: April 08, 2016, 01:51:34 PM »
can you plz tell me what i have to do i will.

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 994
    • GitHub
Re: Calladmin Plugin
« Reply #29 on: April 08, 2016, 03:15:39 PM »
You need to subclass the CalladminPlugin class and extend it with additional methods

 


Rate this page +1 at Google Search