Posts: 1,323
Threads: 24
Joined: Nov 2010
Reputation:
91
(01-22-2012, 16:34)5niper Wrote: Installed the "Warn & Status Plugin" and the "Permissions Plugin".
Setup my my xuid in the config.
If I type: !warn <myplayer name> reason
nothing happens; no message, no nothing.
If any other player tries it, they get a message that tells them
that they are not authorized to use that command. So, since
I'm not getting that message, means that I'm authorized,
and since I'm authorized it should work, or yield an error, no?
Which one did you download? If you are using permission plugin you mustn't set these:
Code: [ADMIN]
admin_xuids=<myxuid> //XUID of clients allowed to use admin commands
max_warnings=3 //[default=3] How many warnings for kick
warn_not_authorized=1/0 //[default=0] Warn if non-admins use admin commands
notify_not_authorized=1/0 //[default=1] Notify if non-admins use admin commands
//If warn_not_authorized is set to 1, notify_not_authorized also needs to be 1!
Remove them.
Posts: 39
Threads: 2
Joined: Jan 2012
Reputation:
0
(01-22-2012, 17:00)zxz0O0 Wrote: (01-22-2012, 16:34)5niper Wrote: Installed the "Warn & Status Plugin" and the "Permissions Plugin".
Setup my my xuid in the config.
If I type: !warn <myplayer name> reason
nothing happens; no message, no nothing.
If any other player tries it, they get a message that tells them
that they are not authorized to use that command. So, since
I'm not getting that message, means that I'm authorized,
and since I'm authorized it should work, or yield an error, no?
Which one did you download? If you are using permission plugin you mustn't set these:
Code: [ADMIN]
admin_xuids=<myxuid> //XUID of clients allowed to use admin commands
max_warnings=3 //[default=3] How many warnings for kick
warn_not_authorized=1/0 //[default=0] Warn if non-admins use admin commands
notify_not_authorized=1/0 //[default=1] Notify if non-admins use admin commands
//If warn_not_authorized is set to 1, notify_not_authorized also needs to be 1!
Remove them.
Ok. Removed those items. Now I get the "you are not allowed to use that command"
message when I type in !warn 5niper running
Is the !warn command, not part of the Permission plugin? Thought that there
was a version of the "Warn & Status" plugin, that supported the Permission plugin.
Ultimately, what I want to do, is warn players. Then after a predetermined number
of warnings, they automatically get kicked. So I thought using both, the Permission plugin, along with the Warn & Status plugin would do the trick.
Posts: 1,323
Threads: 24
Joined: Nov 2010
Reputation:
91
01-23-2012, 15:53
(This post was last modified: 01-23-2012, 16:08 by zxz0O0.)
(01-23-2012, 13:18)5niper Wrote: Ok. Removed those items. Now I get the "you are not allowed to use that command"
message when I type in !warn 5niper running
Is the !warn command, not part of the Permission plugin? Thought that there
was a version of the "Warn & Status" plugin, that supported the Permission plugin. If you get the message "you aren't allowed to use this command" then it's a problem with the permission plugin and you didn't configure it correctly. Please paste again the sv_config.ini part of Permission Plugin.
(01-23-2012, 13:18)5niper Wrote: Ultimately, what I want to do, is warn players. Then after a predetermined number
of warnings, they automatically get kicked. So I thought using both, the Permission plugin, along with the Warn & Status plugin would do the trick. Yes that's exactly why I made this plugin.
Edit: Ok I found the problem
Code: [Permission]
Usergroups=SrAdmin,Admin,User
SrAdmin_xuids=<myxuid>
SrAdmin_commands=*ALL*
Admin_xuids=xuid1,xuid2,xuid3
Admin_commands=*ALL*
User_commands=!help,!getxuid,!gettype,!fov,!rules
User_xuids=*EVERYONE*
Moderator_xuids=xuid1,xuid2,xuid3
Moderator_commands=!help,!getxuid,!gettype
You can not create a new usergroup and set SrAdmin_commands to *ALL*. It's hardcoded that the group "Admin" can use all commands, but for other groups you need to write each command.
So to fix this problem either add yourself to Admin_xuids or do SrAdmin_commands=!warn,!status,!rmwarn
Posts: 39
Threads: 2
Joined: Jan 2012
Reputation:
0
(01-23-2012, 15:53)zxz0O0 Wrote: (01-23-2012, 13:18)5niper Wrote: Ok. Removed those items. Now I get the "you are not allowed to use that command"
message when I type in !warn 5niper running
Is the !warn command, not part of the Permission plugin? Thought that there
was a version of the "Warn & Status" plugin, that supported the Permission plugin. If you get the message "you aren't allowed to use this command" then it's a problem with the permission plugin and you didn't configure it correctly.
(01-23-2012, 13:18)5niper Wrote: Ultimately, what I want to do, is warn players. Then after a predetermined number
of warnings, they automatically get kicked. So I thought using both, the Permission plugin, along with the Warn & Status plugin would do the trick. Yes that's exactly why I made this plugin.
Thanks for your reply. I really appreciate it.
Like my original post mentioned, here is how the config for the permission
plugin looks like:
[Permission]
Usergroups=SrAdmin,Admin,User
SrAdmin_xuids=<myxuid>
SrAdmin_commands=*ALL*
Admin_xuids=xuid1,xuid2,xuid3
Admin_commands=*ALL*
User_commands=!help,!getxuid,!gettype,!fov,!rules
User_xuids=*EVERYONE*
Moderator_xuids=xuid1,xuid2,xuid3
Moderator_commands=!help,!getxuid,!gettype
It would appear to me, that it does not like *ALL*, it shows me in the correct
group when I type in !gettype, and all the user commands work for me.
Do I have to list all the commands instead of using *ALL*? If so, what are the valid
commands?
Unclear to me how by deleting the lines you asked me to earlier will allow me to
use !warn, as with the config above, there's no place to specify the number of
warnings, etc.
Sorry for the barrage of questions. I guess I don't get it.
Posts: 1,323
Threads: 24
Joined: Nov 2010
Reputation:
91
01-23-2012, 16:46
(This post was last modified: 01-23-2012, 16:46 by zxz0O0.)
(01-23-2012, 16:10)5niper Wrote: It would appear to me, that it does not like *ALL*, it shows me in the correct
group when I type in !gettype, and all the user commands work for me.
Do I have to list all the commands instead of using *ALL*? If so, what are the valid
commands?
Unclear to me how by deleting the lines you asked me to earlier will allow me to
use !warn, as with the config above, there's no place to specify the number of
warnings, etc.
Sorry for the barrage of questions. I guess I don't get it. It seems the server is having some problems again and it didn't update my post. Yes that is correct the *ALL* is the problem. If you are creating new groups (SrAdmin) you need to list each command. The commands are listed on the first site and are !warn,!rmwarn,!status
Not sure anymore about the maxwarnings, need to look at source code when I am at home.
Posts: 39
Threads: 2
Joined: Jan 2012
Reputation:
0
OK. Looks like progress is being made. Some what. I removed the SrAdmin group.
Added myself to the Admin group instead, for which the *ALL* commands should work.
When I type in !gettype, it says Admin. So far so good.
When I type in !help, it says *ALL* commands. I thought wow! Got it...
But when I tried warning myself, !warn 5ni running, tells me I "you are not authorized to use Admin commands". DOH!
Here is how it reads:
[Permission]
Usergroups=Admin,User
Admin_xuids=<myxuid>
Admin_commands=*ALL*
User_commands=!help,!getxuid,!gettype,!fov,!rules
User_xuids=*EVERYONE*
Moderator_xuids=xuid1,xuid2,xuid3
Moderator_commands=!help,!getxuid,!gettype
Posts: 23
Threads: 1
Joined: Sep 2011
Reputation:
0
Not sure what commands the *ALL* is supposed to cover really. In mine i had to set it like this.
Admin_commands=*ALL*,!warn,!rmwarn,!status
Posts: 1,323
Threads: 24
Joined: Nov 2010
Reputation:
91
(01-23-2012, 17:05)5niper Wrote: OK. Looks like progress is being made. Some what. I removed the SrAdmin group.
Added myself to the Admin group instead, for which the *ALL* commands should work.
When I type in !gettype, it says Admin. So far so good.
When I type in !help, it says *ALL* commands. I thought wow! Got it...
But when I tried warning myself, !warn 5ni running, tells me I "you are not authorized to use Admin commands". DOH!
Here is how it reads:
[Permission]
Usergroups=Admin,User
Admin_xuids=<myxuid>
Admin_commands=*ALL*
User_commands=!help,!getxuid,!gettype,!fov,!rules
User_xuids=*EVERYONE*
Moderator_xuids=xuid1,xuid2,xuid3
Moderator_commands=!help,!getxuid,!gettype Are you sure you have downloaded the right version (MW3_Warn_Support.zip)? Because that errors looks like you are using the standalone version.
Posts: 39
Threads: 2
Joined: Jan 2012
Reputation:
0
(01-23-2012, 18:51)zxz0O0 Wrote: (01-23-2012, 17:05)5niper Wrote: OK. Looks like progress is being made. Some what. I removed the SrAdmin group.
Added myself to the Admin group instead, for which the *ALL* commands should work.
When I type in !gettype, it says Admin. So far so good.
When I type in !help, it says *ALL* commands. I thought wow! Got it...
But when I tried warning myself, !warn 5ni running, tells me I "you are not authorized to use Admin commands". DOH!
Here is how it reads:
[Permission]
Usergroups=Admin,User
Admin_xuids=<myxuid>
Admin_commands=*ALL*
User_commands=!help,!getxuid,!gettype,!fov,!rules
User_xuids=*EVERYONE*
Moderator_xuids=xuid1,xuid2,xuid3
Moderator_commands=!help,!getxuid,!gettype Are you sure you have downloaded the right version (MW3_Warn_Support.zip)? Because that errors looks like you are using the standalone version.
It is the file that was in the MW3_Warn_Support.zip. How can I tell? By the file date/and or size? What should it be?
Posts: 1,323
Threads: 24
Joined: Nov 2010
Reputation:
91
(01-23-2012, 19:52)5niper Wrote: It is the file that was in the MW3_Warn_Support.zip. How can I tell? By the file date/and or size? What should it be?
The file size should be 7680 bytes, modify date 12. Januray 2012 18:50:02
PS: I told you wrong about the sv_config.ini options. You need to keep the entry max_warnings. Like this
Code: [ADMIN]
max_warnings=3
|