Jump to content

Console commands are registered

Not a Bug 1.5.4

Snaplatack
Snaplatack

Posted

Hello. I cant seem to get the console commands to give recyclers to players via customchatcommands to work
Command that doesnt work: giveindustrialrecycler
CustomChatCommands Config:
 

    {
      "Command": "myrecycler",
      "Messages": [],
      "Permission": "customchatcommands.tier1",
      "ConsoleCmd": ["giveindustrialrecycler {player.id}"],
      "UserID": 0,
      "Broadcast": true,
      "RconCmd": null,
      "Cooldown": 30.0,
      "MaxUses": 0
    },

 

Marte6

Posted

It seems the issue is that the command you're trying to use, giveindustrialrecycler, needs to be executed through RconCmd:

 

    {
      "Command": "myrecycler",
      "Messages": [],
      "Permission": "customchatcommands.tier1",
      "ConsoleCmd": null,
      "UserID": 0,
      "Broadcast": true,
      "RconCmd": ["giveindustrialrecycler {player.id}"],
      "Cooldown": 30.0,
      "MaxUses": 0
    },

 

Marte6

Posted

Changed Status from Pending to Not a Bug

Snaplatack

Posted (edited)

I tried that as well. Still didnt work
I couldnt even find the command in the code

 

Edited by Snaplatack
Marte6

Posted

1 minute ago, Snaplatack said:

I tried that as well. Still didnt work
I couldnt even find the command in the code

 

It worked here, but I used another permission:

 

    {
      "Command": "myrecycler",
      "Messages": [],
      "Permission": "customchatcommands.admin",
      "ConsoleCmd": null,
      "UserID": 0,
      "Broadcast": true,
      "RconCmd": ["giveindustrialrecycler {player.id}"],
      "Cooldown": 30.0,
      "MaxUses": 0
    },

 

Snaplatack

Posted

Just now, Marte6 said:

It worked here, but I used another permission:

 

    {
      "Command": "myrecycler",
      "Messages": [],
      "Permission": "customchatcommands.admin",
      "ConsoleCmd": null,
      "UserID": 0,
      "Broadcast": true,
      "RconCmd": ["giveindustrialrecycler {player.id}"],
      "Cooldown": 30.0,
      "MaxUses": 0
    },

 

Yea. I was on a previous version. I dont think it was in 1.5.3

  • Like 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

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.