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

  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Ok colon, i've got a sample set working. You'll be able to see it here. https://adkats.gamerethos.net/api/battlelog

 

eaguid and user_id are hidden from the view but those fields exist. You can filter the results with either the "game" and/or "eaguid" query pram.

 

For example

 

Game only: https://adkats.gamerethos.net/api/battlelog_game=bf4

EAGUID Only: https://adkats.gamerethos.net/api/ba...uid=EAGUIDHERE

Both: https://adkats.gamerethos.net/api/ba...uid=EAGUIDHERE

 

EDIT:

 

I've added another search pram. If you have an existing persona id you can use it like so. You can't use EAGUID and persona together, however, you can use game and persona together.

 

Valid response:

https://adkats.gamerethos.net/api/ba...sona=234243602

 

Invalid response (No entry exists):

https://adkats.gamerethos.net/api/ba...sona=234243604

Ok looks good. One question though, i put in a valid EA guid and it told me it was invalid. Does it say a GUID is invalid if it just isn't logged in your system yet?
Link to comment
  • Administrators

Originally Posted by Prophet731*:

 

Ok looks good. One question though, i put in a valid EA guid and it told me it was invalid. Does it say a GUID is invalid if it just isn't logged in your system yet?

Yes, if it says invalid then that means no entry exists. Also i'll be adding API authentication to it so it can show more sensitive information. I'll need to get with you on TS or something to figure out the best way to implement it.

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
  • Administrators

Originally Posted by Prophet731*:

 

@ColColonCleaner

 

Ok the creation is script is setup. The 4 fields required are eaguid, game, persona, and user_id. For game use either bf3, bf4, or bfh for the correct game. You'll send a POST request to the battlelog URL.

 

When an entry already exists it will return the result. The results will look like the below examples.

 

Already existing entry.

 

Code:

{
  "status": "success",
  "errors": [],
  "response": {
    "id": 557,
    "persona_id": 234243602,
    "gravatar": "1417d69fded724cb5a80b2f2053412c3",
    "playername": "Prophet731",
    "persona_banned": 0,
    "created_at": "2017-06-06 19:58:06",
    "updated_at": "2017-06-08 09:23:46",
    "link": "http://battlelog.battlefield.com/bf3/soldier/Prophet731/stats/234243602/pc/",
    "is_cached": false,
    "game": {
      "game_id": 1,
      "game_key": "BF3",
      "game_name": "Battlefield 3"
    }
  }
}
New entry.

 

Code:

{
  "status": "success",
  "errors": [],
  "response": {
    "persona_id": "234243602",
    "updated_at": "2017-06-08 09:31:29",
    "created_at": "2017-06-08 09:31:29",
    "id": 100352,
    "link": "http://battlelog.battlefield.com/bfh/soldier/NoNameGiven/stats/234243602/pc/",
    "is_cached": false,
    "game": {
      "game_id": 3,
      "game_key": "BFH",
      "game_name": "Battlefield Hardline"
    }
  }
}
The response you'll get if one of the validation rules fails.

 

Code:

{
  "status": "error",
  "errors": [
    "The selected game is invalid."
  ],
  "response": null
}

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
  • Administrators

Originally Posted by Prophet731*:

 

Please provide the post request data structure required.

The 4 fields required are eaguid, game, persona, and user_id. For game use either bf3, bf4, or bfh for the correct game.

Those are the field names.

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
  • Administrators

Originally Posted by Prophet731*:

 

That doesn't help me know the JSON payload structure you're expecting to be around them.

I'm confused? I'm not expecting any JSON from you. You've done form field POSTs before with the AdKats servers thing.

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
  • Administrators

Originally Posted by Prophet731*:

 

AdKats 6.9.0.0, method PostWeaponCodes, it's sending JSON. Is the format the same now as it was then?

I'm assuming yes, from what I can tell those are the post fields I set in that code. As long as you send that as a POST request, not a GET request then it should work.

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

Originally Posted by XaosBr*:

 

[22:57:32] 1Xaos > @hcwhitelist UNGIDOPORDEUS

[22:54:43] AdKats > Say > 1Xaos > Invalid duration given, unable to submit.

 

How do I solve this case?

 

I tried to add in SQL using the player id, I got this error.

id player: 18946

 

[07:41:41 77] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 18946 is invalid.]

[07:46:41 91] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 1 is invalid.]

[07:48:24 13] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 1 is invalid.]

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

Originally Posted by ColColonCleaner*:

 

[22:57:32] 1Xaos > @hcwhitelist UNGIDOPORDEUS

[22:54:43] AdKats > Say > 1Xaos > Invalid duration given, unable to submit.

 

How do I solve this case?

 

I tried to add in SQL using the player id, I got this error.

id player: 18946

 

[07:41:41 77] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 18946 is invalid.]

[07:46:41 91] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 1 is invalid.]

[07:48:24 13] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 1 is invalid.]

Firstly, issue the command /pupdate, then reboot your procon layer.

 

All special-player commands require a duration, and a player name. You can see this in the plugin documentation.

 

/acwhitelist duration playername

 

It operates just like the temp-ban command for duration parsing. So you can do 2d meaning 2 days, or 3w for 3 weeks, etc. However, you can also use 'perm' to issue a permanent whitelist.

 

/acwhitelist perm playername

Link to comment

Originally Posted by XaosBr*:

 

Firstly, issue the command /pupdate, then reboot your procon layer.

 

All special-player commands require a duration, and a player name. You can see this in the plugin documentation.

 

/acwhitelist duration playername

 

It operates just like the temp-ban command for duration parsing. So you can do 2d meaning 2 days, or 3w for 3 weeks, etc. However, you can also use 'perm' to issue a permanent whitelist.

 

/acwhitelist perm playername

[12:08:05] AdKats > Say > 1Xaos > Offline player found.

[12:08:05] AdKats > Say > 1Xaos > Hacker-Checker Whitelist Player->(OFFLINE)UNGIDOPORDEUS for Permanent Hacker-Checker Whitelist?

[12:11:06] 1Xaos - {MISSING: global.conquest.cn} - Squad > @YES

[12:08:16] AdKats > Say > 1Xaos > Player (OFFLINE)UNGIDOPORDEUS given permanent hacker-checker whitelist for all servers.

 

 

[12:08:16 14] [AdKats] ERROR-6900: [Attempted to issue unban when ban enforcer is disabled.]

[12:08:16 14] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 6 is invalid.]

[12:08:16 14] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 7 is invalid.]

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

Originally Posted by ColColonCleaner*:

 

[12:08:05] AdKats > Say > 1Xaos > Offline player found.

[12:08:05] AdKats > Say > 1Xaos > Hacker-Checker Whitelist Player->(OFFLINE)UNGIDOPORDEUS for Permanent Hacker-Checker Whitelist?

[12:11:06] 1Xaos - {MISSING: global.conquest.cn} - Squad > @YES

[12:08:16] AdKats > Say > 1Xaos > Player (OFFLINE)UNGIDOPORDEUS given permanent hacker-checker whitelist for all servers.

 

 

[12:08:16 14] [AdKats] ERROR-6900: [Attempted to issue unban when ban enforcer is disabled.]

[12:08:16 14] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 6 is invalid.]

[12:08:16 14] [AdKats] ERROR-6900: [player_group entry 'whitelist_hackerchecker' for specialplayer_id 7 is invalid.]

You did not update your plugin. use /pupdate and reboot your layer.
Link to comment

Originally Posted by BitterLooter*:

 

I'm seeing this:

[14:22:13 07] [AdKats] ERROR-6900: [Failed to fetch plugin changelog.]

[14:22:13 07] [AdKats] ERROR-6900: [unable to fetch required documentation files. AdKats cannot be started.]

[14:22:14 17] [AdKats] ERROR-6900: [Failed to fetch plugin links.]

[14:22:14 37] [AdKats] ERROR-6900: [Failed to fetch plugin readme.]

A TCPDUMP on the server shows the requests being made, but the server is returning a 404 error file not found....

 

# wget "http://api.gamerethos.net/adkats/fetch/readme"

--2017-06-10 14:21:40-- http://api.gamerethos.net/adkats/fetch/readme

Resolving api.gamerethos.net (api.gamerethos.net)... 144.217.229.91

Connecting to api.gamerethos.net (api.gamerethos.net)|144.217.229.91|:80... connected.

HTTP request sent, awaiting response... 404 Not Found

2017-06-10 14:21:40 ERROR 404: Not Found.

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

Originally Posted by Prophet731*:

 

On June 3rd 11:59 PM (23:59) PST this URL will no longer work. That's used to serve non-https documents to adkats in case SSL fetch link doesn't work. On linux systems it always uses this link because for some reason the framework doesn't like it with SSL connections.

 

Code:

http://api.gamerethos.net/adkats/fetch
The new URL that replaces the above will be this instead.

 

Code:

http://adkats.gamerethos.net/api/fetch
See above.

 

I'm seeing this:

 

A TCPDUMP on the server shows the requests being made, but the server is returning a 404 error file not found....

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*:

 

I'm seeing this:

 

A TCPDUMP on the server shows the requests being made, but the server is returning a 404 error file not found....

Run /pupdate on your layer to update your plugin to the latest version. This is happening because you are running on a linux layer and can't connect to github via HTTPS.
Link to comment

Originally Posted by Hodor*:

 

@CCC

Downloaded for windows latest test version and after launching AdKats ~ 10 minutes can not boot, other plugins works :huh:

 

Code:

[18:08:15 82] [AdKats] SUCCESS: Fetched reputation definitions.
[18:08:16 41] [AdKats] SUCCESS: Fetched weapon names.
[18:08:16 96] [AdKats] SUCCESS: Fetched special player group definitions.
[18:08:17 02] [AdKats] ERROR-690153: [Unable to confirm global timing. Global UTC Timestamp could not be fetched.]
[18:08:17 02] [AdKats] SUCCESS: Server IP is 94.250.1xx.xx:xxx00
[18:08:17 15] [AdKats] SUCCESS: Database connection open.
[18:08:17 65] [AdKats] INFO: Special player effective not found. Attempting to add.
UPD:

Solved! When I disabled AdKats on Linux (My MySQL on Linux and Procon Windows G-Portal connects to it).

The fact is that yesterday - today AdKats on Linux began to behave strangely (Procon lagged sooooo hard, but Mono showed in the TOP worked)

Using this version myrcon.net/...advanced-in-game-admin-and-ban-enforcer-adkats#entry42378

A few days ago I changed mode for the #1 server to official (#1 server on linux) and disabled features in AdKats that are not available in official mode. Maybe because of this AdKats began to work strange.

 

I will monitor the Linux Procon without enabled AdKats.

 

UPD2:

I noticed that there is no more space on SSD Linux. Maybe the problem is this ....

 

UPD3:

The problem was in the free space on the SSD. I am so sorry @CCC :sad:

Fixed by added this command expire_logs_days = 2 in my.cfg under [mysqld]

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

Originally Posted by ColColonCleaner*:

 

@CCC

Downloaded for windows latest test version and after launching AdKats ~ 10 minutes can not boot, other plugins works :huh:

 

Code:

[18:08:15 82] [AdKats] SUCCESS: Fetched reputation definitions.
[18:08:16 41] [AdKats] SUCCESS: Fetched weapon names.
[18:08:16 96] [AdKats] SUCCESS: Fetched special player group definitions.
[18:08:17 02] [AdKats] ERROR-690153: [Unable to confirm global timing. Global UTC Timestamp could not be fetched.]
[18:08:17 02] [AdKats] SUCCESS: Server IP is 94.250.1xx.xx:xxx00
[18:08:17 15] [AdKats] SUCCESS: Database connection open.
[18:08:17 65] [AdKats] INFO: Special player effective not found. Attempting to add.
UPD:

Solved! When I disabled AdKats on Linux (My MySQL on Linux and Procon Windows G-Portal connects to it).

The fact is that yesterday - today AdKats on Linux began to behave strangely (Procon lagged sooooo hard, but Mono showed in the TOP worked)

Using this version myrcon.net/...advanced-in-game-admin-and-ban-enforcer-adkats#entry42378

A few days ago I changed mode for the #1 server to official (#1 server on linux) and disabled features in AdKats that are not available in official mode. Maybe because of this AdKats began to work strange.

 

I will monitor the Linux Procon without enabled AdKats.

 

UPD2:

I noticed that there is no more space on SSD Linux. Maybe the problem is this ....

 

UPD3:

The problem was in the free space on the SSD. I am so sorry @CCC :sad:

Fixed by added this command expire_logs_days = 2 in my.cfg under [mysqld]

Alright Hodor, glad the issue was found and you're stable on the latest version.
Link to comment
  • 2 weeks later...
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Some people have noticed issues with stability around player listing and I'm working to make sure it isn't directly caused by AdKats, or fix the problem if it is. I've updated the test version of AdKats (6.9.0.155+) to have logging of player listing triggers, receives, accepts, and successful processing. Triggers are how often the plugin requests a player list manually, receives are how often the plugin is receiving a player list from procon, accepts are how often the plugin accepts a new player list, and processes are how often the plugin completes processing an inbound player list.

 

You will see debug messages in the plugin console if you enable the player listing debug. This is enabled and disabled by entering 7621 into the debug level setting. This setting is not persisted to the database, and will reset to disabled when the layer is rebooted.

 

Currently AdKats is looking to process a player list every 5 seconds, or about 12 player lists per minute. If you see a higher value for receives than 12-15 (after the plugin has been online for 5 minutes or so, player lists can be more often on startup) it could mean the plugin isn't managing trigger firing properly.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

In 6.9.0.159 I've added an all-caps chat limiter. There are settings for percentage of the message to be considered all caps, and warning/kill/kick limits for it. The percentage setting can be changed between 50% and 100%. These settings are in section A12. It automatically ignores commands, ignores hidden messages, and ignores squad chat.

 

There are also settings to only make it affect certain people, so if you have one player who is chronically talking in all caps but you don't want to affect everyone else in the server, just enable only enforcing specific people and use the special player command to assign them the group. These commands are /allcapsblacklist and /unallcapsblacklist, using the same parameters as all the other special player group commands.

 

EDIT: Updated some things.

Link to comment

Originally Posted by SmackDown*:

 

In 6.9.0.159 I've added an all-caps chat limiter. There are settings for percentage of the message to be considered all caps, and warning/kill/kick limits for it. It automatically ignores commands, and ignores hidden messages. The percentage setting can be changed between 50% and 100%. These settings are in section A12.

Great feature!

 

When do think some of the experiments items will be released. I am very interested in the grenade feature.

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

Originally Posted by ColColonCleaner*:

 

Great feature!

 

When do think some of the experiments items will be released. I am very interested in the grenade feature.

Hopefully have a chance to take a look at that soon. This recent feature was added out of necessity but I made it useful for everyone while developing it.
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.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • 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.