Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I set items not to be purchased? #144

Open
Max66888 opened this issue Feb 9, 2023 · 3 comments
Open

How can I set items not to be purchased? #144

Max66888 opened this issue Feb 9, 2023 · 3 comments

Comments

@Max66888
Copy link

Max66888 commented Feb 9, 2023

I want to implement a function to unlock different projects for different vips. For example, vip1 can only use footprints for free, and vip2 can only use player skins for free. Can I have such a function?
Or let the free items of vip be excluded. For example, I hope vip can use all the items for free, But Player skins can only be distributed by me on my own initiative
I'm very looking forward to it
Then how do I set the items in the store to be banned from purchase so that I can only actively distribute them to players
I really want this function

@nuclearsilo583
Copy link
Owner

nuclearsilo583 commented Feb 9, 2023

"buyable" "0"

"ignore_vip" "1"

"ignore_free" "1"

put these 3 above to your item will make this item become non-buyable, non-free item (even admin with root access). To get this item give it a unique_id and install lootbox or voucher modules to get it or use sql query to give.

"flag" "op"
this keyvalue can use multiple flag. "flag" "o" or "flag" "q" only so just give your vip player whether o or q flag.

@Max66888
Copy link
Author

“可购买” “0”

“忽略_vip”“1”

“忽略免费”“1”

将这 3 个放在您的项目中将使该项目成为不可购买的、非免费的项目(即使是具有 root 访问权限的管理员)。要获得此物品,请为其提供一个 unique_id 并安装 lootbox 或 voucher 模块以获取它或使用 sql 查询来提供。

"flag" "op" 此键值可以使用多个标志。"flag" "o" or "flag" "q" only 所以只要给你的贵宾玩家 o 或 q 标志。

I found a bug. If "preview" "1" is set, "buyable" "0" will not work

@azalty
Copy link
Contributor

azalty commented Apr 14, 2023

From my experience that isn't true. You do need to set the price to 1 however, making it 0 will make it accessible for everyone, even if "buyable" is set to 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants