Jump to content

Advanced In-Game Admin and Ban Enforcer - AdKats


Message added by Prophet731,

If you've been banned from a server then you will need to appeal the ban with the owners/community of that server. We do not control any bans done on servers that utilize AdKats as all bans are local to that server.

Recommended Posts

Originally Posted by HARDCOREBF*:

 

On ADK servers we run a modification of the hacker-checker, and I'm wondering if some people would want the mod released publicly...

 

Basically, for damage mod bans, and high level aimbot bans, we don't ban people right away, we wait a short amount of time. If you ban them right away, before they spawn, players have no idea the server is protecting them.

 

So, when a player who would be banned first spawns, we start a short timer. During that time the hacker can run around killing a few people with their damage mod or aimbot, and a few of them will notice it, then they see autoadmin ban the guy. Basically lets the server know the autoadmin is protecting them.

 

Anyone interested in this?

yes yes and one more time yesss . plz !!!!!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HARDCOREBF*:

 

Query for 5.2.4.9+, when setting B26 'Post Map Benefit/Detriment Statistics' is enabled.

 

Returns how beneficial certain maps are to your server's population.

 

map_benefit: The number of players that join the server from server level load, until the round ends. This is the time the map is visible on battlelog.

map_detriment: The number of players who leave once the next map is seen. It goes from server level load, until 2 minutes into the round.

 

These two values can be used to compare maps and see what players like.

 

Code:

SELECT 
	`InnerResults`.*,
	ROUND((`map_benefit` - `map_detriment`)/`map_rounds`, 2) AS `map_benefit_numeric`
FROM
(
SELECT
	`server_id` AS `server`,
	`tbl_server`.`ServerName` AS `server_name`,
	`target_name` AS `map_code`,
	(
		SELECT 
			count(`stat_id`)
		FROM 
			`adkats_statistics`
		WHERE
			`server_id` = `server`
		AND
			`target_name` = `map_code`
		AND
			`stat_type` = 'map_benefit'
	) AS `map_rounds`,
	(
		SELECT 
			SUM(`stat_value`)
		FROM 
			`adkats_statistics`
		WHERE
			`server_id` = `server`
		AND
			`target_name` = `map_code`
		AND
			`stat_type` = 'map_benefit'
	) AS `map_benefit`,
	(
		SELECT 
			SUM(`stat_value`)
		FROM 
			`adkats_statistics`
		WHERE
			`server_id` = `server`
		AND
			`target_name` = `map_code`
		AND
			`stat_type` = 'map_detriment'
	) AS `map_detriment`
FROM
	`adkats_statistics`
INNER JOIN
	`tbl_server`
ON
	`server_id` = `tbl_server`.`ServerID`
WHERE
	`stat_type` = 'map_benefit'
	OR
	`stat_type` = 'map_detriment'
GROUP BY
	`server_id`, `target_name`
) AS `InnerResults`
ORDER BY
	`InnerResults`.`server` ASC, `map_benefit_numeric` DESC;
Iam i missing something?

 

Error

SQL query: Documentation

 

 

SELECT

`InnerResults`.*,

ROUND((`map_benefit` - `map_detriment`)/`map_rounds`, 2) AS `map_benefit_numeric`

FROM

(

SELECT

`server_id` AS `server`,

`tbl_server`.`ServerName` AS `server_name`,

`target_name` AS `map_code`,

(

SELECT

count(`stat_id`)

FROM

`adkats_statistics`

WHERE

`server_id` = `server`

AND

`target_name` = `map_code`

AND

`stat_type` = 'map_benefit'

) AS `map_rounds`,

(

SELECT

SUM(`stat_value`)

FROM

`adkats_statistics`

WHERE

`server_id` = `server`

AND

`target_name` = `map_code`

AND

`stat_type` = 'map_benefit'

) AS `map_benefit`,

(

SELECT

SUM(`stat_value`)

FROM

`adkats_statistics`

WHERE

`server_id` = `server`

AND

`target_name` = `map_code`

AND

`stat_type` = 'map_detriment'

) AS `map_detriment`

FROM

`adkats_statistics`

INNER JOIN

`tbl_server`

ON

`server_id` = `tbl_server`.`ServerID`

WHERE

`stat_type` = 'map_benefit'

OR

`stat_type` = 'map_detriment'

GROUP BY

`server_id`, `target_n[...]

MySQL said: Documentation

 

#1146 - Table 'dgns.adkats_statistics' doesn't exist

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by iraqiboy90*:

 

Issue

 

- The auto lock feature

 

Roles with no access to the lock command, when they issue for example a report on the player, the player will be locked.

Now, the second issue is: Why cannot another admin unlock a player using the unlock command?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TMiland*:

 

I'll be adding a 'Useful Queries' section to the AdKats manual so some of the queries I run can be used by others.

 

Firstly, i updated the map statistics query for 5.2.5.2. It now contains a numeric for how helpful the map is when it's in your rotation, independent of how many rounds are played on it. Column map_benefit_numeric. Updated query will have the same performance as the previous.

 

Code:

SELECT 
	`InnerResults`.*,
	ROUND((`map_benefit` - `map_detriment`)/`map_rounds`, 2) AS `map_benefit_numeric`
FROM
(
SELECT
	`server_id` AS `server`,
	`tbl_server`.`ServerName` AS `server_name`,
	`target_name` AS `map_code`,
	(
		SELECT 
			count(`stat_id`)
		FROM 
			`adkats_statistics`
		WHERE
			`server_id` = `server`
		AND
			`target_name` = `map_code`
		AND
			`stat_type` = 'map_benefit'
	) AS `map_rounds`,
	(
		SELECT 
			SUM(`stat_value`)
		FROM 
			`adkats_statistics`
		WHERE
			`server_id` = `server`
		AND
			`target_name` = `map_code`
		AND
			`stat_type` = 'map_benefit'
	) AS `map_benefit`,
	(
		SELECT 
			SUM(`stat_value`)
		FROM 
			`adkats_statistics`
		WHERE
			`server_id` = `server`
		AND
			`target_name` = `map_code`
		AND
			`stat_type` = 'map_detriment'
	) AS `map_detriment`
FROM
	`adkats_statistics`
INNER JOIN
	`tbl_server`
ON
	`server_id` = `tbl_server`.`ServerID`
WHERE
	`stat_type` = 'map_benefit'
	OR
	`stat_type` = 'map_detriment'
GROUP BY
	`server_id`, `target_name`
) AS `InnerResults`
ORDER BY
	`InnerResults`.`server` ASC, `map_benefit_numeric` DESC;
We need a page for that in either the webadmin tool, or the stats page provided by Ty_ger07 or maybe both? :biggrin:

 

Sure, I can create a new special player group for that, and post the top 10 populators.

 

Two groups will be created.

 

statlist_populatorpastweek_top10

statlist_populatorpastweek_top10_users

 

The first will contain all players who have populated. The second will contain only players who are also on the user list, so admins and whatever other roles you've created.

 

All entries for these two groups will be overwritten in the db when the new ones are posted.

 

HOWEVER, i need to first update the special player table to accept groups longer than 30 characters.

As long as the specialplayers table works as before, i have just gotten the zero dates issue fixed, and i don't want another breakdown of the slots system! :woot:

 

Besides that, it sounds good. :smile:

* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Issue

 

- The auto lock feature

 

Roles with no access to the lock command, when they issue for example a report on the player, the player will be locked.

Now, the second issue is: Why cannot another admin unlock a player using the unlock command?

First is a bug, which is now fixed.

Second, is the point of locking, only the locking admin (or the lock timing out) can unlock them.

Link to comment
  • Administrators

Originally Posted by Prophet731*:

 

We need a page for that in either the webadmin tool, or the stats page provided by Ty_ger07 or maybe both? :biggrin:

That's actually why the query/table was made. It's going to be added to the bfacp

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Query for any version of AdKats after 5.0.0.0.

 

Selects the kill/kick/ban statistics for your servers, given as a percentage of your playerbase.

 

Code:

SELECT 
	COUNT(`PlayerID`) AS `UniquePlayers`,
	ROUND((
		SELECT 
			DISTINCT COUNT(`target_id`) 
		FROM 
			`adkats_records_main` 
		WHERE 
		(
			`command_action` = 3 or 
			`command_action` = 4 or 
			`command_action` = 5 or
			`command_action` = 54
		)
		AND
			`target_id` IS NOT NULL
	)/COUNT(`PlayerID`)*100, 3) AS `PercentageKilled`,
	ROUND((
		SELECT 
			DISTINCT COUNT(`target_id`) 
		FROM 
			`adkats_records_main` 
		WHERE 
		(
			`command_action` = 3 or 
			`command_action` = 4 or 
			`command_action` = 5 or
			`command_action` = 54
		)
		AND
		(
			`source_name` <> 'AutoAdmin'
		)
		AND
			`target_id` IS NOT NULL
	)/COUNT(`PlayerID`)*100, 3) AS `PercentageKilled_Admins`, 
	ROUND((
		SELECT 
			DISTINCT COUNT(`target_id`) 
		FROM 
			`adkats_records_main` 
		WHERE 
		(
			`command_action` = 6
		)
		AND
		(
			`source_name` <> 'AFKManager'
		)
		AND
			`target_id` IS NOT NULL
	)/COUNT(`PlayerID`)*100, 3) AS `PercentageKicked`, 
	ROUND((
		SELECT 
			DISTINCT COUNT(`target_id`) 
		FROM 
			`adkats_records_main` 
		WHERE 
		(
			`command_action` = 6
		)
		AND
		(
			`source_name` <> 'AFKManager'
			AND
			`source_name` <> 'AutoAdmin'
		)
		AND
			`target_id` IS NOT NULL
	)/COUNT(`PlayerID`)*100, 3) AS `PercentageKicked_Admins`,
	ROUND((
		SELECT 
			DISTINCT COUNT(`target_id`) 
		FROM 
			`adkats_records_main` 
		WHERE 
		(
			`command_action` = 7 or 
			`command_action` = 8 or 
			`command_action` = 72 or
			`command_action` = 73
		)
		AND
			`target_id` IS NOT NULL
	)/COUNT(`PlayerID`)*100, 3) AS `PercentageBanned`,
	ROUND((
		SELECT 
			DISTINCT COUNT(`target_id`) 
		FROM 
			`adkats_records_main` 
		WHERE 
		(
			`command_action` = 7 or 
			`command_action` = 8 or 
			`command_action` = 72 or
			`command_action` = 73
		)
		AND
		(
			`source_name` <> 'BanEnforcer'
			AND
			`source_name` <> 'AutoAdmin'
		)
		AND
			`target_id` IS NOT NULL
	)/COUNT(`PlayerID`)*100, 3) AS `PercentageBanned_Admins`,
	ROUND((
		SELECT 
			COUNT(`ban_id`) 
		FROM 
			`adkats_bans` 
		WHERE 
			`ban_status` = 'Active'
		AND
			`ban_endTime` > UTC_TIMESTAMP()
	)/COUNT(`PlayerID`)*100, 3) AS `PercentageBanned_Active`
FROM
	`tbl_playerdata`;
Link to comment

Originally Posted by 2GooDforU-FNO*:

 

Hello, me again :smile:.

Just wanted to tell you that I managed to install AdKats on all of my servers.

Even if I reinstalled procon layers, I think the only thing I had to do is , delete AdKats.cfg file and upload the new .cs file.

I still want to thank you once again ColColonCleaner for your help that day.

 

Best regards

2GooDforU-FNO-

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HARDCOREBF*:

 

Hi , we have strange issue that when Auto AFK Enabled , system kicks players while they playing . And receiving multi reports on that , that players getting kicked for AFK . I disabled it for few days and no report then. Just wanted to let you know . For now sadly we have to disable this function . May be there is some outages with communicating with server , but everything else (commands etc )works very fast ...

* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Hi , we have strange issue that when Auto AFK Enabled , system kicks players while they playing . And receiving multi reports on that , that players getting kicked for AFK . I disabled it for few days and no report then. Just wanted to let you know . For now sadly we have to disable this function . May be there is some outages with communicating with server , but everything else (commands etc )works very fast ...

Is anyone else seeing this issue?

 

The AFK manager has been running for 3 months on our 8 servers without issue.

 

Have you modified the plugin source?

Link to comment

Originally Posted by HARDCOREBF*:

 

What is your time to afk kick?

Its 3 min . I gonna enable it and try debug , i hope to catch player who rejoins and report about this and ill see what is the output . Cs mostly they send masg via website , but i saw several asking "why i was kicked for AFK while playng "

 

00b9b2431d4c5904ac1b77293fd8cad9.png

* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Its 3 min . I gonna enable it and try debug , i hope to catch player who rejoins and report about this and ill see what is the output . Cs mostly they send masg via website , but i saw several asking "why i was kicked for AFK while playng "

 

00b9b2431d4c5904ac1b77293fd8cad9.png

I detect score changes, spawns, kills, deaths, and chat messages as not being AFK. If none of those happen in the time slot, they are AFK. 3 minutes is very fast for an AFK kick on public servers.
Link to comment

Originally Posted by HARDCOREBF*:

 

I detect score changes, spawns, kills, deaths, and chat messages as not being AFK. If none of those happen in the time slot, they are AFK. 3 minutes is very fast for an AFK kick on public servers.

Ok , ill increase it to 8 . but thing is , t hey say they got kicked for AFK while playing , i doubt score didnt changed in 3 min (was in Dom gamemode) , but you might be right , 3 min is fast . Ill keep you posted
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

I created an organization on Github for AdKats, and moved the repository ownership to that organization.

 

All links to ColColonCleaner/AdKats/? will still work, the redirect system they run is pretty in-depth, even for source and raw files too.

 

Org link: https://github.com/AdKats

 

Repo link: https://github.com/AdKats/AdKats

Link to comment

Originally Posted by wdfstryfe*:

 

[19:51:17 77] [AdKats] EXCEPTION: Line Unknown: [FetchIPLocation][Error while parsing IP response information.]: System.InvalidCastException: Unable to cast object of type 'System.Double' to type 'System.String'.

at PRoConEvents.AdKats.FetchIPLocation(String ip)

 

 

Getting this error ever since upgrading to the latest version.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Hodor*:

 

@ColColonCleaner

 

I have a server Locker on 32 slots and 800 tickets

"Auto-Surrender Use Optimal Values for Locker Conquest" - no good for me, too long to wait before starting AutoNuke, please help with the values, I would appreciate if you write that there put to Custom settings, thanks.

* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

@ColColonCleaner

 

I have a server Locker on 32 slots and 800 tickets

"Auto-Surrender Use Optimal Values for Locker Conquest" - no good for me, too long to wait before starting AutoNuke, please help with the values, I would appreciate if you write that there put to Custom settings, thanks.

Which version are you running? Please update to the latest test version, there are some auto-surrender changes. It tells the trigger count left until auto-surrender fires to admins. Let me know if this helps.
Link to comment

Originally Posted by Hodor*:

 

Which version are you running? Please update to the latest test version, there are some auto-surrender changes. It tells the trigger count left until auto-surrender fires to admins. Let me know if this helps.

5.2.2.5

I do not quite understand at the Custom setting, there the numbers 999

* Restored post. It could be that the author is no longer active.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.