Jump to content

Not supporting chat command restrictions

Closed 1.0.3 1.0.6



laodu

Posted (edited)

Not supporting chat command restrictions

Edited by laodu
Scalbox

Posted

3 minutes ago, laodu said:

Not supporting chat command restrictions

Hi, please explain to me what problem you are having with the plugin

laodu

Posted

I can still use the zh command normally at the outpost. It did not have the effect of being restricted.

CommandLimiter.json

Scalbox

Posted

remove / from command

from /zh to zh

laodu

Posted

Unfortunately, I have tested both methods and found no effect.

laodu

Posted

{
      "Enabled": true,
      "Command": "zh",
      "BlockCommand (If set to TRUE players will no longer be able to use this command. Default FALSE)": false,
      "SafeZone. Value [AllowOnly | Allow | Block] (Default Allow)": "Block",
      "BuildingBlocked. Value [AllowOnly | Allow | Block] (Default Allow)": "AllowOnly",
      "CanBeBypassed (If set to TRUE the command block can be bypassed. It depends on the user permissions)": false,
      "CooldownSeconds (-1 infinite)": 30,
      "MaxUsagePerMinute (-1 infinite)": -1,
      "MaxUsagePerHour (-1 infinite)": -1,
      "MaxUsagePerDay (-1 infinite)": -1,
      "MaxUsagePerWipe (-1 infinite)": -1
    },
    {
      "Enabled": true,
      "Command": "shop",
      "BlockCommand (If set to TRUE players will no longer be able to use this command. Default FALSE)": false,
      "SafeZone. Value [AllowOnly | Allow | Block] (Default Allow)": "Allow",
      "BuildingBlocked. Value [AllowOnly | Allow | Block] (Default Allow)": "AllowOnly",
      "CanBeBypassed (If set to TRUE the command block can be bypassed. It depends on the user permissions)": false,
      "CooldownSeconds (-1 infinite)": 30,
      "MaxUsagePerMinute (-1 infinite)": -1,
      "MaxUsagePerHour (-1 infinite)": -1,
      "MaxUsagePerDay (-1 infinite)": -1,
      "MaxUsagePerWipe (-1 infinite)": -1
    }

 

Scalbox

Posted

I did a check and there is an error for plugins that do not support commands via console, I will release a fix soon

Scalbox

Posted

45 minutes ago, laodu said:
{
      "Enabled": true,
      "Command": "zh",
      "BlockCommand (If set to TRUE players will no longer be able to use this command. Default FALSE)": false,
      "SafeZone. Value [AllowOnly | Allow | Block] (Default Allow)": "Block",
      "BuildingBlocked. Value [AllowOnly | Allow | Block] (Default Allow)": "AllowOnly",
      "CanBeBypassed (If set to TRUE the command block can be bypassed. It depends on the user permissions)": false,
      "CooldownSeconds (-1 infinite)": 30,
      "MaxUsagePerMinute (-1 infinite)": -1,
      "MaxUsagePerHour (-1 infinite)": -1,
      "MaxUsagePerDay (-1 infinite)": -1,
      "MaxUsagePerWipe (-1 infinite)": -1
    },
    {
      "Enabled": true,
      "Command": "shop",
      "BlockCommand (If set to TRUE players will no longer be able to use this command. Default FALSE)": false,
      "SafeZone. Value [AllowOnly | Allow | Block] (Default Allow)": "Allow",
      "BuildingBlocked. Value [AllowOnly | Allow | Block] (Default Allow)": "AllowOnly",
      "CanBeBypassed (If set to TRUE the command block can be bypassed. It depends on the user permissions)": false,
      "CooldownSeconds (-1 infinite)": 30,
      "MaxUsagePerMinute (-1 infinite)": -1,
      "MaxUsagePerHour (-1 infinite)": -1,
      "MaxUsagePerDay (-1 infinite)": -1,
      "MaxUsagePerWipe (-1 infinite)": -1
    }

 

Plugin fixed and updated.
now you just need to set the command 1 time and it works with or without the / character
Let me know if everything works fine now.
Thanks

laodu

Posted

The latest version also has the same error. Players' chat commands cannot be restricted. However, input in F1 can be restricted.

Scalbox

Posted

I did another update but even with version 1.0.4 the problem was solved, if you want I'll show you a video that demonstrates it.
try with version 1.0.5

laodu

Posted

1.0.5 did not have an effect

laodu

Posted

Will other plugins affect it? My server is PVE, is it due to compatibility issues.

Scalbox

Posted

5 minutes ago, laodu said:

1.0.5 did not have an effect

here is a video that demonstrates how it works with this configuration.
If you have the admin role, the command is not blocked

 

{
      "Enabled": true,
      "Command": "shop",
      "BlockCommand (If set to TRUE players will no longer be able to use this command. Default FALSE)": false,
      "SafeZone. Value [AllowOnly | Allow | Block] (Default Allow)": "Allow",
      "BuildingBlocked. Value [AllowOnly | Allow | Block] (Default Allow)": "Allow",
      "CanBeBypassed (If set to TRUE the command block can be bypassed. It depends on the user permissions)": false,
      "CooldownSeconds (-1 infinite)": 50,
      "MaxUsagePerMinute (-1 infinite)": -1,
      "MaxUsagePerHour (-1 infinite)": -1,
      "MaxUsagePerDay (-1 infinite)": 100,
      "MaxUsagePerWipe (-1 infinite)": 100
    },

 

 

laodu

Posted

Unfortunately, the video I recorded cannot be uploaded here.

Scalbox

Posted

I also did a test with a plugin that only supports commands via chat and not from the console, and everything works

Scalbox

Posted

What framework do you use? Carbon or oxide?

laodu

Posted

There are regional restrictions in my location, so I am unable to upload videos to YouTube

laodu

Posted

This is the situation I used on the F1 console, it's normal. If you switch to the chat window, it will have no effect.xxx.png.19197a41f3ffe10d0df53cca958ed51a.png

Scalbox

Posted

9 minutes ago, laodu said:

This is the situation I used on the F1 console, it's normal. If you switch to the chat window, it will have no effect.xxx.png.19197a41f3ffe10d0df53cca958ed51a.png

Let's do one test at a time, for now can you test the plugin with this configuration for the shop command?

With this configuration you can use the shop command 1 time per minute, let me know if this configuration works, so I can exclude a possible problem with the hooks

 

{
      "Enabled": true,
      "Command": "shop",
      "BlockCommand (If set to TRUE players will no longer be able to use this command. Default FALSE)": false,
      "SafeZone. Value [AllowOnly | Allow | Block] (Default Allow)": "Allow",
      "BuildingBlocked. Value [AllowOnly | Allow | Block] (Default Allow)": "Allow",
      "CanBeBypassed (If set to TRUE the command block can be bypassed. It depends on the user permissions)": false,
      "CooldownSeconds (-1 infinite)": 50,
      "MaxUsagePerMinute (-1 infinite)": -1,
      "MaxUsagePerHour (-1 infinite)": -1,
      "MaxUsagePerDay (-1 infinite)": 100,
      "MaxUsagePerWipe (-1 infinite)": 100
    },

 

laodu

Posted

2121212.png.a25b250ea2e6b03503245844e14a2af1.pngUnfortunately, it only works when entered through the F1 console

laodu

Posted

I used the configuration you sent me to test this time.

Scalbox

Posted

2 minutes ago, laodu said:

I used the configuration you sent me to test this time.

Ok so the commands work.
So it doesn't work for you when you set it to run outside of build privileges and outside of safe zones correct?


1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

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.