Jump to content

permission

Fixed 2.3.0 2.3.1

fullwiped
fullwiped

Posted

Hello, I'm trying to add a permission so that the shop can't be used without permission. I'm restarting the plugin, but for example, the "use" permission I added doesn't appear in the permission manager. I tried another word, but I still couldn't see it.

"Permission to use plugin (ex: shop.use)": "shop.use",

Could you please help me with this?
 

Mevent

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 2.3.1

  • Love 1
fullwiped

Posted

21 minutes ago, Mevent said:

Changed Status from Pending to Fixed

Changed Fixed In to 2.3.1

Thank you!

fullwiped

Posted (edited)

After your update, the permission added in the config successfully appeared in Permission Manager, but purchases can still be made from the shop even though the permission hasn't been granted.
I'm not sure if it has anything to do with the server panel. 
The same thing happens with DailyRewards as well. There too, rewards can be claimed from the server panel even if permission is not granted.

Edited by fullwiped
MeventSupport

Posted

1 hour ago, fullwiped said:

After your update, the permission added in the config successfully appeared in Permission Manager, but purchases can still be made from the shop even though the permission hasn't been granted.
I'm not sure if it has anything to do with the server panel. 
The same thing happens with DailyRewards as well. There too, rewards can be claimed from the server panel even if permission is not granted.

this permission blocks access to the "shop" command. In case of ServerPanel, you can set permissions in the category settings

fullwiped

Posted (edited)

7 minutes ago, MeventSupport said:

this permission blocks access to the "shop" command. In case of ServerPanel, you can set permissions in the category settings

I tried adding a shop-specific permission in the Categories.json file located at /serverfiles/carbon/data/ServerPanel. This permission only hides the shop tab in the ServerPanel. However, the shop is still accessible through the /shop command within the ServerPanel, and purchases can still be made.

I'm not sure, maybe there isn't any mistake — maybe I just couldn't do it, but I'd appreciate it if you could test it when you're available 🙏

Edited by fullwiped
MeventSupport

Posted

On 4/8/2025 at 6:16 PM, fullwiped said:

I tried adding a shop-specific permission in the Categories.json file located at /serverfiles/carbon/data/ServerPanel. This permission only hides the shop tab in the ServerPanel. However, the shop is still accessible through the /shop command within the ServerPanel, and purchases can still be made.

I'm not sure, maybe there isn't any mistake — maybe I just couldn't do it, but I'd appreciate it if you could test it when you're available 🙏

Can you explain in more detail what you want to get as a result?

fullwiped

Posted

32 minutes ago, MeventSupport said:

Can you explain in more detail what you want to get as a result?

Of course, let me explain in detail.

I want to ensure that only players with the /shop permission can access the shop, and that players without this permission cannot use the /shop command or access the shop through the server panel.

Here's what I have in mind:
I want the in-game shop, accessible via the server panel, to be exclusive to players who have joined our Discord channel.
So instead of allowing the default group in Carbon to use the shop, I want only players in the validated group to have access.

The purpose of this setup is to encourage more players to join our Discord by restricting shop access to only those with this specific permission.

MeventSupport

Posted

22 hours ago, fullwiped said:

Of course, let me explain in detail.

I want to ensure that only players with the /shop permission can access the shop, and that players without this permission cannot use the /shop command or access the shop through the server panel.

Here's what I have in mind:
I want the in-game shop, accessible via the server panel, to be exclusive to players who have joined our Discord channel.
So instead of allowing the default group in Carbon to use the shop, I want only players in the validated group to have access.

The purpose of this setup is to encourage more players to join our Discord by restricting shop access to only those with this specific permission.

Okay, all right. What attempts have you made to do that? What didn't work out?

fullwiped

Posted

20 minutes ago, MeventSupport said:

Okay, all right. What attempts have you made to do that? What didn't work out?

I added a permission like this to the shop config:

"Permission to use plugin (ex: shop.use)": "shop.use",


Then, I also added the following permission to the server panel:

{
  "ID": 642350277,
  "Enabled": true,
  "Permission": "shop.vip",
  "Title": "SHOP",
  "Chat Button": false,
  "Show Pages?": true,
  "Commands": [
    "s",
    "shop",
    "shops"
  ],

After adding these permissions, the SHOP tab is successfully hidden in the server panel.
However, commands like /shop, /s, and /shops can still open the hidden shop, and players are still able to make purchases.

Is there something I might be missing in the setup? I'd appreciate any guidance.

MeventSupport

Posted

13 minutes ago, fullwiped said:

I added a permission like this to the shop config:

"Permission to use plugin (ex: shop.use)": "shop.use",


Then, I also added the following permission to the server panel:

{
  "ID": 642350277,
  "Enabled": true,
  "Permission": "shop.vip",
  "Title": "SHOP",
  "Chat Button": false,
  "Show Pages?": true,
  "Commands": [
    "s",
    "shop",
    "shops"
  ],

After adding these permissions, the SHOP tab is successfully hidden in the server panel.
However, commands like /shop, /s, and /shops can still open the hidden shop, and players are still able to make purchases.

Is there something I might be missing in the setup? I'd appreciate any guidance.

this is a bug! we will fix it soon!

  • Love 1
MeventSupport

Posted

25 minutes ago, fullwiped said:

I added a permission like this to the shop config:

"Permission to use plugin (ex: shop.use)": "shop.use",


Then, I also added the following permission to the server panel:

{
  "ID": 642350277,
  "Enabled": true,
  "Permission": "shop.vip",
  "Title": "SHOP",
  "Chat Button": false,
  "Show Pages?": true,
  "Commands": [
    "s",
    "shop",
    "shops"
  ],

After adding these permissions, the SHOP tab is successfully hidden in the server panel.
However, commands like /shop, /s, and /shops can still open the hidden shop, and players are still able to make purchases.

Is there something I might be missing in the setup? I'd appreciate any guidance.

fixed!

  • Love 2
fullwiped

Posted

58 minutes ago, MeventSupport said:

fixed!

I tested it and it’s working great. Thanks a lot for your help and support.

  • Love 1
1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

120.3k

Files Sold

Total number of files sold.

2.5m

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.