TC restriction optionSolved

With the current config system a player gets the highest number of TCs available to him, so in other words it cannot be set lower than the default number. But what if you want to penalise a player by restricting his TCs to a number LOWER than the default? Can we have an option for this?

Hi,

In fact, I've messed up a bit with the conditions. I'll remove some 'else if' in the code to only 'if' to not restrain to the only first applicable limit...



Merged post

Could you try the 1.7.4 to see if it fits your needs ?

You must use the 'Limit Others Can Downgrade Default' option to allow lower values with the 'Limit Others' array.

The permission is not recognised:

Permission 'cupboardlimiter.limit_1' doesn't exist​
Here is my config:
{
  "Max amount of TC(s) to place": {
    "Limit Default": 15,
    "Limit Vip": 15,
    "Limit Others": [5, 10],
    "Limit Others Can Downgrade Default": true,
    "Global Team Limit": true,
    "Limits In Team": {
      "2": 25,
      "3": 35
    }
  },
  "Discord Notification": {
    "Discord Webhook URL": ""
  },
  "Chat Settings": {
    "Prefix": "[TC Limit] :",
    "Icon's SteamId": 76561############
  }
}​

That's weird, could you try 'perm.show perms' to see what perms are generated for limit_* ?

These are the only cupboardlimiter perms listed:

cupboardlimiter.admin
cupboardlimiter.bypass
cupboardlimiter.commandList
cupboardlimiter.vip​

Could you try this in the given order :

In the console : o.unload CupboardLimiter
Then you ensure that the config file contains the line

    "Limit Others": [5, 10],

If not, add it.
Then, in the console : o.load CupboardLimiter
And then give me perms from cupboardlimiter.
The config could be overwritten by the plugin so it have to be unloaded for modifications.

I have years of experience with plugins, and what you've described is exactly what I did before - I double checked that the config was properly loaded. The plugin still works fine with the normal limits but these custom limits don't work.

Have you tried loading my config yourself, and do you get different results?

I have loaded your config and I have the perms cupboardlimiter.limit_1 and cupboardlimiter.limit_2

Hi @JimDeadlock, is this problem fixed ?

Tbh I don't remember, sorry, and I apologise for not responding to your last post - I stopped using the plugin a few months ago for player choice reasons.

Ok, I lock the thread so.

Locked automatically