Skip to content

Commit e473e67

Browse files
committed
Uptade readme
1 parent fb04b9d commit e473e67

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

CommandProtection/AwaitingConfirmationCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static AwaitingConfirmationCommand Create(CommandSender sender, string qu
3535
Plugin.instance.Commands.Remove(command);
3636
if (sender.Available())
3737
{
38-
sender.RaReply("The time to confirm the command has expired", false, false, "");
38+
sender.Print("The time to confirm the command has expired");
3939
}
4040
}
4141
});

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Command protection
2+
The plugin that protects your server console and RA panel from unexpected input of potentially dangerous commands.
3+
4+
Example: if you typed sr, but didn't want to press Enter yet, and the cat walked across the keyboard and entered a command that would kick out half of players on restart, then nothing will happen, because you need to confirm the command with another command with the required code.
5+
6+
## Config
7+
code_generator_chars - chars that command confirmation code generator can use for new code\
8+
confirmation_timeout - the time in seconds for which you need to enter the confirmation command\
9+
confirmation_code_length - length of command confirmation code\
10+
protected_console_commands - protected commands

0 commit comments

Comments
 (0)