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

 

Wait are you saying I can NOT use the same Sender Address and User Address? They have to be two different ones? I honestly do not believe that should matter I will test it but should be fine using the same sender email as the login one.

I only say if you havent a normal email adress ore a difference between you smtp and you Sender adress than you musst fill it out correctly for example this picture.

 

2013-12-22_123029.jpg

 

At the beginn i have use [email protected] for both points the Sender and the SMTP and in this constelation it havent work but you see in the picture how i have set it and it works fine.

 

Come on our Teamspeake if you will and i try to help you out okay .

 

ts3.battleplay4u.com

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

Originally Posted by lordicon*:

 

So this error still stands for the Email feature. I have tried many different ways as suggested and nothing is working, Tempted on loading up the .cs to see whats up myself but I could end up breaking it more.. Any ideas?

Code:

[AdKats]ERROR: Error while sending email: System.Net.Mail.SmtpException: The Operation has timed out. at System.Net.Mail.SmtpClient.Send(MailMessage message) at PRoConEvents.Adkats.EmailHandler.EmailWrite(String subject, String body)
Could it be the host I have Procon running on?

 

EDIT: Just did a restart on my server and got this error.

Code:

[AdKats]ERROR:Line 0: [<SendReport>b_70][Error in email sending thread.]: System.NullReferenceException: Object reference not set to an instance of an object. at PRoConEvents.Adkats.EmailHandler.<>c_DisplayClass73.<SendReport>b_70()
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by lordicon*:

 

I'm getting this error with the mail thingy:

 

[15:50:46 62] [AdKats] ERROR: Unable to send email. No users with emails have access to player interaction commands.

You have to setup the Admins you want to receive the emails their soldier name and also add their Email to the list. Like this image here...

test.png

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

Originally Posted by L1ndsayLohan*:

 

You have to setup the Admins you want to receive the emails their soldier name and also add their Email to the list. Like this image here...

test.png

Now i got this error:

 

[16:34:18 41] [AdKats] ERROR: Error while sending email: System.Net.Mail.SmtpException: The operation has timed out.

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

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

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

Originally Posted by lordicon*:

 

Now i got this error:

 

[16:34:18 41] [AdKats] ERROR: Error while sending email: System.Net.Mail.SmtpException: The operation has timed out.

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

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

Well now you are right where I am if you notice my past posts I am getting that same type of error.. I guess its not me then lol
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by L1ndsayLohan*:

 

Well now you are right where I am if you notice my past posts I am getting that same type of error.. I guess its not me then lol

Oh yea, that's right. Well I appreciate your help :smile: Hope someone will solve this problem.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LumPenPacK*:

 

Thanks for the last update.

 

Something seems to be broken with the admin accounts now. Some users don't have admin rights anymore although they're in the admin list.

 

[22:21:11] AdKats > Say > CaptAlbern > Your user role Default Guest does not have access to Admin Say.

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

Originally Posted by Disturbed11B*:

 

Thanks for the last update.

 

Something seems to be broken with the admin accounts now. Some users don't have admin rights anymore although they're in the admin list.

 

 

 

admin.JPG

Its not broken, you need to assign them full admin.... Look for the drop down right where it says Default Guest on User Role.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ixnorp*:

 

yea i know, the idletimeout ban is supposed to ban the player by name.

 

so when i disable ban enforcer, adkats exports all the bans out from database.

 

it shows idletimeout ban as

 

ban by

 

EAGUID in GUID column

 

GUID in type column

 

permanent ban in remaining column

 

idletimeout ban in reason column

 

on procon banlist

 

 

should i set both ban by name and ban by guid in ban enforcer settings to true?

 

To avoid having idletimeout ban as guid permanently?

 

btw HSK,DPS auto ban will register on my banlist if i set ban enforcer off right?

 

 

edited.

 

i just got this error.

 

22:01:07 78] [AdKats] ERROR: Source player not found in server for in-game command, unable to complete command.

 

and adkats wasn't able to process the in-game commands.

 

whenever i type @killme !say soemthing, procon crashes.

do any have the same problem as me

 

22:01:07 78] [AdKats] ERROR: Source player not found in server for in-game command, unable to complete command

 

even if the user,soldier,role is all correct. adkats couldn't execute the in game command

 

 

Sent from my iPhone using Tapatalk

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

Originally Posted by lordicon*:

 

I have had no problems adding new roles or users I only have problems with the email feature.

If you are making a new role do not make it the Admins name make it something like "Limited Admin".

Make sure you add the User which is the Admins you want to have access. I don't think it has to be his in game name but it also does not hurt to make it the in game name.

Make sure you add the Admins in game name to his own Soldier input, Make sure the name is EXACTLY like his in game. Uppercase lowercase numbers try not to have any typos.

 

I do not use the Default Role I created new roles for each tier of Admins I have, Then assigned the commands I wanted each role to have. Works like a charm in my opinion..

 

Like I said I only have issues with the Email Feature.

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

Originally Posted by ColColonCleaner*:

 

I have had no problems adding new roles or users I only have problems with the email feature.

If you are making a new role do not make it the Admins name make it something like "Limited Admin".

Make sure you add the User which is the Admins you want to have access. I don't think it has to be his in game name but it also does not hurt to make it the in game name.

Make sure you add the Admins in game name to his own Soldier input, Make sure the name is EXACTLY like his in game. Uppercase lowercase numbers try not to have any typos.

 

I do not use the Default Role I created new roles for each tier of Admins I have, Then assigned the commands I wanted each role to have. Works like a charm in my opinion..

 

Like I said I only have issues with the Email Feature.

Oh my god so many things to reply to. I'll start from front to back...

 

Yes, how things are working with the admin system is exactly how they should operate. Create user, create role, assign role commands, assign role to user.

 

For the email system, did you change the sender information? I had the same issue you did, until i found out it was an issue with port numbers. If you are using gmail or similar you cannot use port 465, it's not allowed. Try using port 587 instead.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

think it has to do with table adkats_usersoldiers

 

I did a manual add to the adkats_usersoldiers and that fixed the admin user I added to adkats_usersoldiers

Please run this on your database and tell me what it says:

 

SELECT @@sql_mode;

 

On my databases it responds with:

 

STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE? SUBSTITUTION

 

The most important of these is strict transaction mode. If your database is not in strict mode, it won't throw errors, so AdKats thinks things are working properly when they aren't.

Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

Same for me, my admin is full and he can kick etc in game, but it still says he doesn't have sufficient rights as a default user blah blah blah

So you are saying the command still goes through, but it also tells them they don't have access? You have two instances of AdKats running on your server if that is the case.
Link to comment
  • Plugin Developer

Originally Posted by ColColonCleaner*:

 

do any have the same problem as me

 

22:01:07 78] [AdKats] ERROR: Source player not found in server for in-game command, unable to complete command

 

even if the user,soldier,role is all correct. adkats couldn't execute the in game command

 

 

Sent from my iPhone using Tapatalk

Hmmmm....that error means it can't find your soldier information in the server list of players when you are issuing commands. Are you trying to issue a command immediately after you start AdKats, like a few seconds after you start it? It can take 15-20 seconds for all players in the server to be listed, database processed, stats fetched (if you enabled that), and made accessible. Otherwise i'm not sure where that would be coming from. I have not seen that error message since i added that code months ago.
Link to comment

Originally Posted by 101st-chicago*:

 

Please run this on your database and tell me what it says:

 

SELECT @@sql_mode;

 

On my databases it responds with:

 

STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE? SUBSTITUTION

 

The most important of these is strict transaction mode. If your database is not in strict mode, it won't throw errors, so AdKats thinks things are working properly when they aren't.

I don't get any results..

 

:sad:

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

Originally Posted by lordicon*:

 

Oh my god so many things to reply to. I'll start from front to back...

 

Yes, how things are working with the admin system is exactly how they should operate. Create user, create role, assign role commands, assign role to user.

 

For the email system, did you change the sender information? I had the same issue you did, until i found out it was an issue with port numbers. If you are using gmail or similar you cannot use port 465, it's not allowed. Try using port 587 instead.

For the Mail system I am using my own mail host and port 50, I have been using it fine on the Procon Email Notifier its just with yours that it does this. I have the host name correct as well as the login and password. The Login name for my mail server is the same as the sender email. I looked at your default mail settings and mine are pretty much the same way just different information of course. I tried to use your default gmail ssl that you left in the system as a test and it gave the same error as with my own.

 

Just had a brain fart. With my Mail Host Authentication is required for IMAP, POP3, and SMTP. Could that be the issue? Do you have it set up for Authentication?

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

Originally Posted by ColColonCleaner*:

 

For the Mail system I am using my own mail host and port 50, I have been using it fine on the Procon Email Notifier its just with yours that it does this. I have the host name correct as well as the login and password. The Login name for my mail server is the same as the sender email. I looked at your default mail settings and mine are pretty much the same way just different information of course. I tried to use your default gmail ssl that you left in the system as a test and it gave the same error as with my own.

 

Just had a brain fart. With my Mail Host Authentication is required for IMAP, POP3, and SMTP. Could that be the issue? Do you have it set up for Authentication?

Hmm, i use the same system as that plugin. I'll compare and get back to you. In the meantime i would suggest using that plugin and disabling email handling and the report commands in AdKats until i find out why. I'm on vacation with family right now so my time here is very limited.
Link to comment

Originally Posted by ixnorp*:

 

Hmmmm....that error means it can't find your soldier information in the server list of players when you are issuing commands. Are you trying to issue a command immediately after you start AdKats, like a few seconds after you start it? It can take 15-20 seconds for all players in the server to be listed, database processed, stats fetched (if you enabled that), and made accessible. Otherwise i'm not sure where that would be coming from. I have not seen that error message since i added that code months ago.

sorry, my bad. you are right. i typed the in game commands too fast after starting up adkats.

 

btw does the nuke function work if i set my team factions to CN and RU in my server start up text? i tested with a few people in my server, and it didn't work with !nuke us/ru/all all 3.

 

enjoy your holiday 1st and merry xmas

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

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