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 ]

Pages: [1] 2 3   Go Down
  Print  
Author Topic: SuperAdmin plugin  (Read 12658 times) Bookmark and Share
Moderator
*
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 70
Offline Offline
« on: February 21, 2009, 01:52:53 PM »

********* New functionality provided *********
**** General Admin ****

!superlookup or !slookup

Superlookup extends the lookup mechanism. Currently, lookup will only find players that are currently using a certain name. Superlookup will also find all players that used a name and changed it. This is useful for hunting people that use another's player name, cheat in their name, and change it.

!allaliases or !allalias

Allaliases extends the alias command, and will not limit itself to 10 answers as alias does. Optional parameter <detailed> will show alias creation and modification time plus number of times the alias was used.

!listbans or !lb

Listbans will display *ALL* active bans, expiration time, which admin applied it and what reason the admin gave. Optional parameter <admin> will list bans only by that admin.

!superbaninfo or !sbaninfo

Superbaninfo will display more information on a player's ban, including expiration time, which admin applied it and what reason the admin gave.

!listids or !lids

Listids will display the player ids of every online player. Alternatively, it can be used with a name, in which case, it will display the id of that player. By default, it's available to all players. The idea is that when someone demos a cheater, they can include the player id for easier banning afterwards.

**** Ban Watcher ****
** New commands **

!pastbans or !pab

Pastbans will display all past bans (tempbans and bans) of a player, who applied the ban and the expiration of the ban.

** New functionality **

If enabled is set to True, every time an admin applies a ban or a banned player tries to join all online admins will be told the amount of past bans that player has.

**** Notices ****

This plugin will enhance the functionality on notices. To apply a notice to a player use !notice (normal bot command).

** New commands **
!lookupnotices or !lnot

Lookupnotices will display all active notices for a player

!deletenotice or !delnot

Deletenotice will mark notice #number as inactive. The number is obtained from the !lnot listing.

** New functionality **

If lookup_on_login is set to True, the bot will search for a player's notices whenever it connects. If the player has notices, every online admin will get the listing of notices the player has.
 

*** Notes

This plugin has only been tested with the latest development (git head as of 21/02/09) B3 and on UrT 4.1 on python 2.5 and python 2.4. It will probably work on older B3 and other games.

Download:
SuperAdmin1.4.7.1.zip




« Last Edit: August 25, 2009, 10:33:29 AM by Ismael » Logged

B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #1 on: February 21, 2009, 02:26:08 PM »

This is a good idea, but remember, b3 sometimes (v. rare) messes up the aliases, especially if you are running it remote or restart it.

So, you might end up with bogus results.
Logged

Sr. Member
****
Posts: 238
Offline Offline
« Reply #2 on: February 22, 2009, 12:46:39 AM »

yeah especially if you have been running it with urt the aliases are not as reliable
Logged

Moderator
*
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 70
Offline Offline
« Reply #3 on: February 23, 2009, 04:53:11 PM »

New release. Details in top post.
Logged
Sr. Member
****
Posts: 238
Offline Offline
« Reply #4 on: February 23, 2009, 10:55:35 PM »

question on the listbans

I noticed your SQL statement
Code:
SELECT c.id, c.name, p.time_expire, p.reason
FROM penalties p, clients c
WHERE p.client_id = c.id AND
p.inactive = 0 AND
(type='Ban' OR type='TempBan') AND
p.time_expire >= UNIX_TIMESTAMP() """)
Since we have quite a big DB with a lot of permabans it would block B3 if we would execute a listban for some time if he has to dump out everything.

Suggestions:
Make Permbans a setting yes/no  so it can dump them out or not
make the tables configurable?
Logged

Moderator
*
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 70
Offline Offline
« Reply #5 on: February 24, 2009, 06:41:58 AM »

Quote
Since we have quite a big DB with a lot of permabans it would block B3 if we would execute a listban for some time if he has to dump out everything.

Yes, both !listbans and !allaliases have the potential to take a good while for the bot. They're not supposed to be "everyday" commands, but rather a tool for admins.


Quote
Suggestions:
Make Permbans a setting yes/no  so it can dump them out or not
make the tables configurable?

I'm sorry, I don't quite get what you mean. Could you please explain a bit more?
You mean having a command that will only list BANS and not TempBans depending on a setting?
Logged
Echelon v2. Dev.
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 114
Offline Offline
WWW
Support Specialty: Echelon v.2
« Reply #6 on: February 24, 2009, 07:48:55 AM »

Well even if it is not an everyday command even for admins it will still kill the bot. I have over 4500 bans in my database. If i was to list bans the bot would either die or crash. Maybe adding ceteria to the command like !listbans <name> or !listbans <id> or !listbans <adminname>. Something like that. Its a good idea, I really like it.
Eire.32
Logged

Eire.32
Moderator
*
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 70
Offline Offline
« Reply #7 on: February 24, 2009, 08:34:48 AM »

Quote
Well even if it is not an everyday command even for admins it will still kill the bot. I have over 4500 bans in my database. If i was to list bans the bot would either die or crash. Maybe adding ceteria to the command like !listbans <name> or !listbans <id> or !listbans <adminname>. Something like that. Its a good idea, I really like it.

The first two cases are handled by !sbaninfo, it will tell you specifics of the bans applied to a certain player.
!listbans <adminname> is a good idea. I'll implement it later Smiley
Logged
Sr. Member
****
Posts: 238
Offline Offline
« Reply #8 on: February 24, 2009, 09:23:57 AM »

my suggestion was to only list temp bans. with specification is even better ofcourse Smiley

not to take away your enthousiasm because I really think it is great you are taking this up, however doesnt echelon provide a webfront for not every day tasks or even a direct interface on the database if needed.
Logged

Moderator
*
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 70
Offline Offline
« Reply #9 on: February 24, 2009, 09:33:19 AM »

Of course you can look this all up in the DB if you have access to it. But I don't, so I need the plugin Smiley

New release Smiley
- Fixed stupid typo (sorry if I crashed your bot!  Embarrassed )
- allalias now takes optional parameter to show more details
- listbans now takes optional parameter to show only bans by that admin
Logged
Moderator
*
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 70
Offline Offline
« Reply #10 on: March 25, 2009, 10:08:33 AM »

New release!

Renamed to SuperAdmin because I have added many different services by now.

New in this release:
**** Ban Watcher ****
** New commands **

!pastbans or !pb

Pastbans will display all past bans (tempbans and bans) of a player, who applied the ban and the expiration of the ban.

** New functionality **

If enabled is set to True, every time an admin applies a ban a !pb will be executed on the banned player. Every online admin will get the ban history.

**** Notices ****

This plugin will enhance the functionality on notices. To apply a notice to a player use !notice (normal bot command).

** New commands **
!lookupnotices or !lnot

Lookupnotices will display all active notices for a player

!deletenotice or !delnot

Deletenotice will mark notice #number as inactive. The number is obtained from the !lnot listing.

** New functionality **

If lookup_on_login is set to True, the bot will search for a player's notices whenever it connects. If the player has notices, every online admin will get the listing of notices the player has.
Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #11 on: March 25, 2009, 10:57:37 AM »

1 problem:

!pb is also an alias for permban
Logged

Moderator
*
OS: Linux
Type: Home user
Gameservers: UrT
Posts: 70
Offline Offline
« Reply #12 on: April 10, 2009, 12:24:07 PM »

Updated.
Changes:
- Changed pb to pab (thanks Bakes)
- When client connects or is banned, the bot will only tell amount of past bans. Full history still accesible through !pastbans.

Any ideas for enhancements are welcomed!
Logged
Jr. Member
**
Posts: 21
Offline Offline
« Reply #13 on: April 19, 2009, 09:48:32 AM »

I really like the idea of this plugin!

Though when using any of its commands B3 pretty much dies.  It don't seem to be crashing all the way as it still is throwing up our spams we got setup with B3.

Side Note: We do have quite a large database
Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #14 on: April 19, 2009, 10:06:35 AM »

does it return, at any point?
Logged

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


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal