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

 

You can run it without the web admin, you just wont have the easy ability to edit bans and view a player history.

AdKats can be run completely without the webadmin. The chat log player IDs are both for that and future planned in-game commands working with chat. I'll change it for now though so people wont have issues with their providers.

 

Here is the heart of the problem:

I need to run a logical setup, it needs to adapt to different circumstances considering i support two game versions, two versions of stat logger, and need an additional column in an existing table.

I can't run triggers from the plugin, it's a bug in the current version of MySQL connector, but i can run those in the setup script.

I cant put procedures in the sql setup script because people have permission issues with those, but i can put that logic in the plugin.

It turns into one huge codependency problem. I'll figure it out though...

Link to comment

Originally Posted by jking54*:

 

AdKats can be run completely without the webadmin. The chat log player IDs are both for that and future planned in-game commands working with chat. I'll change it for now though so people wont have issues with their providers.

 

Here is the heart of the problem:

I need to run a logical setup, it needs to adapt to different circumstances considering i support two game versions, two versions of stat logger, and need an additional column in an existing table.

I can't run triggers from the plugin, it's a bug in the current version of MySQL connector, but i can run those in the setup script.

I cant put procedures in the sql setup script because people have permission issues with those, but i can put that logic in the plugin.

It turns into one huge codependency problem. I'll figure it out though...

Ok John at NFO ran the update on my MySQL and now your script in post#823 works now, showing 26 tables.

 

3.9.9.2 up and running, I'm added and all seems good so far.

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

Originally Posted by ColColonCleaner*:

 

Ok John at NFO ran the update on my MySQL and now your script in post#823 works now, showing 26 tables.

 

3.9.9.2 up and running, I'm added and all seems good so far.

It may just have been your particular database...Schmoove back a few pages was also running an NFO database and he could run the testing script just fine from the start. "Ran fine for me, no errors, NFO." So i'm gonna wait on removing it, it solves far too many other issues keeping it there to draw conclusion from one person.

 

Please tell me exactly what John had to do for you in order for this to work on your system.

Link to comment

Originally Posted by jking54*:

 

It may just have been your particular database...Schmoove back a few pages was also running an NFO database and he could run the testing script just fine from the start. "Ran fine for me, no errors, NFO." So i'm gonna wait on removing it, it solves far too many other issues keeping it there to draw conclusion from one person.

 

Please tell me exactly what John had to do for you in order for this to work on your system.

Hi yeah I'll get that for you asap on what he did but question, does the ban enforcer work yet? I've enabled it but not sure it's actually doing anything, also, how does the email system work again? Doesn't it send emails to us similar to Notify Me? Or does it just send to you guys, thanks.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Hi yeah I'll get that for you asap on what he did but question, does the ban enforcer work yet? I've enabled it but not sure it's actually doing anything, also, how does the email system work again? Doesn't it send emails to us similar to Notify Me? Or does it just send to you guys, thanks.

  • Yes, ban enforcer works.
  • Yes, the email system sends the same way notifyme does, in fact a large portion of that code is directly used from the notifyme plugin and stated as such. I included the adkatsbattlefield smtp creds so you dont need your own server for that. It will send emails to all of your user's email addresses who have access to player interaction commands. Player interaction commands are any command that can directly affect what a player sees or does. e.g. @say and @kill are player interaction commands, @rules and @report are not.
Link to comment

Originally Posted by jking54*:

 

  • Yes, ban enforcer works.
  • Yes, the email system sends the same way notifyme does, in fact a large portion of that code is directly used from the notifyme plugin and stated as such. I included the adkatsbattlefield smtp creds so you dont need your own server for that. It will send emails to all of your user's email addresses who have access to player interaction commands. Player interaction commands are any command that can directly affect what a player sees or does. e.g. @say and @kill are player interaction commands, @rules and @report are not.
Ahh ok, I just noticed the email setting under users, so I added mine.

 

Now my ban list on one server in procon is short compared to the other, aren't they supposed to align up or do I have this function wrong?

 

Also, what is a suitable debug setting to use?

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

Originally Posted by ColColonCleaner*:

 

Ahh ok, I just noticed the email setting under users, so I added mine.

 

Now my ban list on one server in procon is short compared to the other, aren't they supposed to align up or do I have this function wrong?

 

Also, what is a suitable debug setting to use?

If you've enabled ban enforcer then all procon bans will be imported and you wont see any in procon anymore aside from the "ban count" fields next to the ban settings (those settings are on a delay to save bandwidth so don't worry). But if you refresh your ban tabs on each server they should be completely empty.
Link to comment

Originally Posted by jking54*:

 

If you've enabled ban enforcer then all procon bans will be imported and you wont see any in procon anymore aside from the "ban count" fields next to the ban settings (those settings are on a delay to save bandwidth so don't worry). But if you refresh your ban tabs on each server they should be completely empty.

Odd, yes Ban enforcer is on on both servers but the bans are still showing in procon, get this error:

 

[23:36:41 13] [AdKats] OnBanList fired

[23:36:41 13] [AdKats] Bans found

[23:36:41 15] [AdKats] EXCEPTION: [FetchPlayer][Error while fetching player.]: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`EAGUID`

 

) ' at line 5

at MySql.Data.MySqlClient.MySqlStream.ReadPacket()

at MySql.Data.MySqlClient.NativeDriver.GetResult(Int3 2& affectedRow, Int64& insertedId)

at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)

at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)

at MySql.Data.MySqlClient.MySqlDataReader.NextResult( )

at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader( CommandBehavior behavior)

at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuer y()

at PRoConEvents.AdKats.FetchPlayer(Boolean requireExisting, Int64 playerID, String playerName, String playerGUID, String playerIP)

[23:36:41 16] [AdKats] EXCEPTION: [DatabaseCommThreadLoop][Error occured in database comm thread.]: System.NullReferenceException: Object reference not set to an instance of an object.

at PRoConEvents.AdKats.DatabaseCommThreadLoop()

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

Originally Posted by ColColonCleaner*:

 

Odd, yes Ban enforcer is on on both servers but the bans are still showing in procon, get this error:

 

[23:36:41 13] [AdKats] OnBanList fired

[23:36:41 13] [AdKats] Bans found

[23:36:41 15] [AdKats] EXCEPTION: [FetchPlayer][Error while fetching player.]: MySql.Data.MySqlClient.MySqlException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`EAGUID`

 

) ' at line 5

at MySql.Data.MySqlClient.MySqlStream.ReadPacket()

at MySql.Data.MySqlClient.NativeDriver.GetResult(Int3 2& affectedRow, Int64& insertedId)

at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)

at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)

at MySql.Data.MySqlClient.MySqlDataReader.NextResult( )

at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader( CommandBehavior behavior)

at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuer y()

at PRoConEvents.AdKats.FetchPlayer(Boolean requireExisting, Int64 playerID, String playerName, String playerGUID, String playerIP)

[23:36:41 16] [AdKats] EXCEPTION: [DatabaseCommThreadLoop][Error occured in database comm thread.]: System.NullReferenceException: Object reference not set to an instance of an object.

at PRoConEvents.AdKats.DatabaseCommThreadLoop()

Error reproduced on my end. A section of ban enforcer i hadn't tested. Fixing.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Where's my "nextmap" feature? :ohmy: I've probably donated the most to date and I want want want it.....

Doesn't ultimate map manager do that? That's what i said when someone asked about this before.

 

EDIT: Ah i see, permissions for the !nextmap commands wouldn't be distributed if you used that plugin. I'll add it to the burner. Did you already submit a ticket on github for this?

Link to comment

Originally Posted by TMiland*:

 

Or i could just add another table for reserved slots to make things simple :P. All users on the user list still get reserved slots, but also the people from this extra table. It will just be one column. adkats_reservedslots player_name.

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

Originally Posted by www-battleplay4u-com*:

 

Bugs:

 

1. IRO does not work .... setting use iro punishment is set to true

 

iro punish.png

 

2. email does not work ... ist correctly set up

[15:30:35 09] [AdKats] ERROR: Error while sending email: System.InvalidOperationException: Es muss ein Empfänger angegeben werden.

bei System.Net.Mail.SmtpClient.Send(MailMessage message)

bei PRoConEvents.AdKats.EmailHandler.EmailWrite(String subject, String body)

 

3. Feature Request:

 

---> Switch off Server Rules Settings

 

cause if you use another plugin and dont write something into the server rule list you get this error

[15:37:46 18] [AdKats] ERROR: target or message null in playerSayMessage

 

4. 2 excatly same names should be prohibited or not possible to be added

 

same names.png

 

btw i cant delete user out of adkats..only via DB

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

Originally Posted by ColColonCleaner*:

 

TESTERS ONLY

 

Updated. 3.9.9.4

 

Fixed IRO Punish

Fixed email settings (gave more informative error message)

Fixed command disable settings

 

@Battleplay

Fixed IRO that was broken.

The email error you were getting was because you didn't set up any recipients (None of your users with access to player interaction commands had an email assigned to them).

When wanting to disable a command AdKats has, you aren't supposed to just delete things from it, you change it from "Active" to "Disabled" in the command list then AdKats will ignore the command.

 

https://raw.github.com/ColColonClean...test/AdKats.cs

Same setup script as 3.9.9.2

https://raw.github.com/ColColonClean...est/adkats.sql

Link to comment

Originally Posted by jking54*:

 

Hi C3, my version now shows 3.9.9.4 and seems to be working well, I did notice with Ban Enforcer that it works with EA GUID bans so all of those have been taken care of off my procon list. I've been banning most though by PB GUID but will do it from now on by EA GUID.

 

Question on setting up admins, my main admin I can trust like a brother so I'm guessing make him full? Or are there other settings?

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

Originally Posted by www-battleplay4u-com*:

 

TESTERS ONLY

 

Updated. 3.9.9.4

 

Fixed IRO Punish

Fixed email settings (gave more informative error message)

Fixed command disable settings

 

@Battleplay

Fixed IRO that was broken.

The email error you were getting was because you didn't set up any recipients (None of your users with access to player interaction commands had an email assigned to them).

When wanting to disable a command AdKats has, you aren't supposed to just delete things from it, you change it from "Active" to "Disabled" in the command list then AdKats will ignore the command.

 

https://raw.github.com/ColColonClean...test/AdKats.cs

Same setup script as 3.9.9.2

https://raw.github.com/ColColonClean...est/adkats.sql

ok..thx

 

IRO works

Email works

 

THX

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

Originally Posted by ColColonCleaner*:

 

Hi C3, my version now shows 3.9.9.4 and seems to be working well, I did notice with Ban Enforcer that it works with EA GUID bans so all of those have been taken care of off my procon list. I've been banning most though by PB GUID but will do it from now on by EA GUID.

 

Question on setting up admins, my main admin I can trust like a brother so I'm guessing make him full? Or are there other settings?

You can add new roles and allow usage of commands as you see fit. The two that are in there by default are basically all and nothing, you create everything in between.
Link to comment

Originally Posted by jking54*:

 

TESTERS ONLY

 

Updated. 3.9.9.5

 

Fixed users able to be added with duplicate names.

 

https://raw.github.com/ColColonClean...test/AdKats.cs

Same setup script as 3.9.9.2

https://raw.github.com/ColColonClean...est/adkats.sql

Same setup script as 3.9.9.2, same as one in post #823? This what I used.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by jking54*:

 

If you can run it, you ran the right script.

Ok good, yes it ran fine thanks to John :smile:

 

Also, is this just normal operation for the hacker checks?

 

[10:30:41 13] [AdKats] BANENF: No inbound ban checks. Waiting for Input.

[10:30:42 04] [AdKats] HCKCHK: begin reading player

[10:30:43 78] [AdKats] Players with BF4Stats: 22.83%

[10:30:43 78] [AdKats] HCKCHK: No inbound hacker checks. Waiting 10 seconds or for input.

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

Originally Posted by ColColonCleaner*:

 

Ok good, yes it ran fine thanks to John :smile:

 

Also, is this just normal operation for the hacker checks?

 

[10:30:41 13] [AdKats] BANENF: No inbound ban checks. Waiting for Input.

[10:30:42 04] [AdKats] HCKCHK: begin reading player

[10:30:43 78] [AdKats] Players with BF4Stats: 22.83%

[10:30:43 78] [AdKats] HCKCHK: No inbound hacker checks. Waiting 10 seconds or for input.

I stated that the hacker checker is in debug mode right now until the full release. It will spit out the percent of players in your server who have stats on BF4Stats, and also any missing weapons. Currently i don't have damages for the l85, mp7, mtar, and a couple others since those damages are not released yet.
Link to comment

Originally Posted by jking54*:

 

I stated that the hacker checker is in debug mode right now until the full release. It will spit out the percent of players in your server who have stats on BF4Stats, and also any missing weapons. Currently i don't have damages for the l85, mp7, mtar, and a couple others since those damages are not released yet.

Ok just wondering what the output meant is all, np
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by wonz*:

 

[19:25:00 80] [AdKats] Waiting a few seconds for requirements and other plugins to initialize, please wait...

[19:25:00 80] [AdKats] 5...

[19:25:01 80] [AdKats] 4...

[19:25:02 80] [AdKats] 3...

[19:25:03 80] [AdKats] 2...

[19:25:04 80] [AdKats] 1...

[19:25:05 80] [AdKats] Initializing AdKats 3.7.0.1 components.

[19:25:05 80] [AdKats] SUCCESS: Server IP is 198.xx.xxx.xxx:47200!

[19:25:05 91] [AdKats] ERROR: Database connection FAILED with EXCEPTION. Bad credentials, invalid hostname, or invalid port.

[19:25:06 00] [AdKats] AdKats 3.7.0.1 Disabled! =(

i did put the hostname right and the port 3306

been working on this for hours i cant get it to work :sad:

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