Jump to content

Recommended Posts

According to the Settings guide this setting controls if you can enter commands on the command prompt where the server is running on, not if you can open the console ingame.

To prevent players from entering commands you can take away their admin rights.

If you want to completely disable the ability to open the console ingame, you probably have to do so by modding.

  • Sanity 1
14 hours ago, Daniel86268 said:

According to the Settings guide this setting controls if you can enter commands on the command prompt where the server is running on, not if you can open the console ingame.

To prevent players from entering commands you can take away their admin rights.

If you want to completely disable the ability to open the console ingame, you probably have to do so by modding.

First of all, thank you for your answer. But I don't think it's this problem. I found two lines of code in the "server_log" file, as follows:

[00:00:00]: Command Line Arguments: -console -cluster MyDediServer -shard Master 

[00:00:00]: [WARNING] -console has been deprecated: Use the [MISC] / console_enabled setting instead.

I'm not quite sure what this means, but I believe it should be related to the problem I'm encountering

11 hours ago, Pig and beefalo said:

First of all, thank you for your answer. But I don't think it's this problem. I found two lines of code in the "server_log" file, as follows:

[00:00:00]: Command Line Arguments: -console -cluster MyDediServer -shard Master 

[00:00:00]: [WARNING] -console has been deprecated: Use the [MISC] / console_enabled setting instead.

I'm not quite sure what this means, but I believe it should be related to the problem I'm encountering

-console is the command line argument passed to the program when launching the server executable to enable console input over the command line interface. 

This has been replaced by the console_enabled cluster.ini setting, also to enable/disable console input over the command line interface.

Effectively they do the same, but -console is the old one, which might get removed entirely eventually (hence the warning), and console_enabled is the new/recommended way to control this.

  • Thanks 1
On 8/12/2025 at 1:21 AM, Daniel86268 said:

-console is the command line argument passed to the program when launching the server executable to enable console input over the command line interface. 

This has been replaced by the console_enabled cluster.ini setting, also to enable/disable console input over the command line interface.

Effectively they do the same, but -console is the old one, which might get removed entirely eventually (hence the warning), and console_enabled is the new/recommended way to control this.

Thank you for your answer. I did change this option, but it didn't achieve my goal. I think I won't be able to turn it off for the time being

First, I want to confirm: when you mention the "console," are you referring to the input box that opens in the game when you press the "`" key? If so, then "Daniel86268" is correct—you cannot prevent players (including yourself) from opening it. However, if you haven’t granted administrator privileges to other players, even if they open this input box and execute certain commands, those commands won’t take effect. So there’s no need to worry about them running commands.

As for the console_enabled property in the cluster.ini file, it actually determines whether commands can be executed in the terminal where the Dedicated Server is running. If you set it to false, you won’t be able to execute commands like c_save() directly in the terminal. However, you can still open the input box in the game by pressing "`" and execute the command there—but only players with administrator privileges will have their commands executed.

You can test this out yourself! 😊

For reference, the original Chinese text is below:

首先我想确认下你说的"console"指的是游戏中按下"`"键打开的那个输入框吗?如果是这样的话,那"Daniel86268"说的是对的,你无法阻止玩家(包括你自己)打开它,但是如果你没有把管理员权限给其他玩家,那么即使他们打开了这个输入框并执行了一些命令也不会生效,所以你无需担心他们执行一些命令。至于"cluster.ini"文件中的"console_enabled"属性,它的确是用来决定是否能在运行Dedicated Server的那个终端中执行命令的,如果你设置成了"false",那你将无法在终端中执行"c_save()"之类的命令,但是你仍然可以在游戏中按下"`"键然后在弹出的输入框中执行它,但是只有具有管理员权限的玩家执行它才会生效。你可以自己实验下~

  • Thanks 1

Thank you for your answer and translation. I haven't logged in for a long time and just saw it😊

On 9/26/2025 at 11:18 PM, GuoZ. said:

First, I want to confirm: when you mention the "console," are you referring to the input box that opens in the game when you press the "`" key? If so, then "Daniel86268" is correct—you cannot prevent players (including yourself) from opening it. However, if you haven’t granted administrator privileges to other players, even if they open this input box and execute certain commands, those commands won’t take effect. So there’s no need to worry about them running commands.

As for the console_enabled property in the cluster.ini file, it actually determines whether commands can be executed in the terminal where the Dedicated Server is running. If you set it to false, you won’t be able to execute commands like c_save() directly in the terminal. However, you can still open the input box in the game by pressing "`" and execute the command there—but only players with administrator privileges will have their commands executed.

You can test this out yourself! 😊

For reference, the original Chinese text is below:

首先我想确认下你说的"console"指的是游戏中按下"`"键打开的那个输入框吗?如果是这样的话,那"Daniel86268"说的是对的,你无法阻止玩家(包括你自己)打开它,但是如果你没有把管理员权限给其他玩家,那么即使他们打开了这个输入框并执行了一些命令也不会生效,所以你无需担心他们执行一些命令。至于"cluster.ini"文件中的"console_enabled"属性,它的确是用来决定是否能在运行Dedicated Server的那个终端中执行命令的,如果你设置成了"false",那你将无法在终端中执行"c_save()"之类的命令,但是你仍然可以在游戏中按下"`"键然后在弹出的输入框中执行它,但是只有具有管理员权限的玩家执行它才会生效。你可以自己实验下~

 

Edited by Pig and beefalo

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...