Frequently Asked Questions - yapzhenyie/GadgetsMenu GitHub Wiki
Theses’re the common questions asked by players. If you still have issue after looking for it, you can join our Discord server.
- Why is GadgetsMenu not working for me?
- Why are Morphs not working?
- Why player doesn’t get menu selector on join?
- How can I enable MySQL database?
- Player had purchased a cosmetic item or gain from mystery boxes but they still can’t use that item?
- How can I change the mystery dust storage?
- How to create a Mystery Vault?
- How to remove a Mystery Vault?
- How to give a player Mystery Boxes?
- How to give a player random quality Mystery Boxes?
- How to give a player mystery gifts?
- Why non-op players cannot open the Mystery Vault?
- Why are the players unable to open Mystery Boxes?
- Why do players get Mystery Boxes randomly?
- If you received this message
You don't have permission to do that in this world!
. - What you need to do is just to setup the worlds in which you want to enable GadgetsMenu.
- Look for
Enabled-Worlds
inconfig.yml
- See the article Morphs
- Players are required a permission to get menu selector.
gadgetsmenu.menuselector
Player-Data:
Storage: mysql <-- set to 'mysql'
MySQL:
hostname: localhost
username: root
database: minecraft
port: '3306'
password: ''
- Set the storage to
mysql
and setup MySQL infos.
- PlaceholderAPI plugin is required before you can use GadgetsMenu placeholders. Make sure the plugin you’re using is supported PlaceholderAPI and has enabled PlaceholderAPI usage.
- Here is the list of Placeholders
Q: Player had purchased a cosmetic item or gain from mystery boxes but they still can’t use that item?
- GadgetsMenu Free version does not save unlocked cosmetic items in it’s database. It only runs a command to add permission to that particular player. In order to do that, you need to change the command according to your server permission plugin.
- If you’re using premium version, you will not face this issue and you may ignore the solution below.
- There are two files you need to make the changes. (
config.yml
&mystery boxes.yml
)
1) Cosmetic-Item-Purchase:(Can be found in 'config.yml' file)
# This is the command when player purchase cosmetic items.
# This command is depends on your permission plugin.
Execute-Command: pex user {PLAYER} add {PERMISSION}
2) Mystery-Boxes: (Can be found in 'mystery boxes.yml' file)
Execute-Command: pex user {PLAYER} add {PERMISSION}
- For GroupManager:
manuaddp {PLAYER} {PERMISSION}
- For PermissionsEx:
pex user {PLAYER} add {PERMISSION}
- For PowerfulPerms:
pp user {PLAYER} add {PERMISSION}
- For LuckPerms:
lp user {PLAYER} permission set {PERMISSION}
- For CloudNet permissions:
cperms user {PLAYER} add permission {PERMISSION}
- For PowerRanks:
pr addplayerperm {PLAYER} {PERMISSION}
- Look for
Mystery-Dust-Storage
inconfig.yml
file. Set the storage you would like to use.
Cosmetic-Item-Purchase:
# Set the storage where do you want to save mystery dust.
# Available storages: 'file', 'mysql', 'coinsapi', 'playerpoints', 'vault'.
Mystery-Dust-Storage: file
- Look at a block that you want be a Mystery Vault and run this command.
Command: /gmysteryboxes mode add-vault <name>
- Look at the block that you have created as a vault and run this command.
Command: /gmysteryboxes mode remove-vault [vaultName|r={radius}]
- Quality: between 1 to 5.
- Expiry Date:
h
for hours,d
for days,m
for months,false
for no expired date. - Require Permission:
true
orfalse
. Set to true will required for permission to open mystery box.
/gmysteryboxes give <player> <amount> [quality] [ex=7h|d|m|false] [reqperm=false]
- Syntax:
c:(<quality>:<chances>)
The quality of the box following by the chances to get it.
Note that you must fill up all the quality which is 1 to 5. Missing any of it will causing error.
/gmysteryboxes give <player> <amount> c:(1:40,2:30,3:25,4:15,5:10)
- Each pack contains 5 mystery boxes.
/gmysteryboxes gift <player> <pack>
- Set
spawn-protection
to0
in your server.properties file.
- Situation 1: Player does not have the permission to open that box. Permissions
- Situation 2: Player does not have the permission to use the mystery vault animation they have selected. Permissions
- There’s a mystery box reward system which give player mystery boxes each hour by default.
- You can find this in
mystery boxes.yml
file.
Mystery-Boxes-Reward:
Enabled: true
# Chances that a player will gain a Mystery Box when achieve certain play time.
Chance-To-Get-Mystery-Box: 60
# What quality of Mystery Box the player will get.
Chance:
One-Star: 5
Two-Star: 10
Three-Star: 60
Four-Star: 20
Five-Star: 5
# How long the Mystery Box will expired?
Expiry-Date-In-Days: 7
Play-Time:
Hours: 0
Minutes: 60
Seconds: 0
# Which world you want player's play time to be count.
Enabled-Worlds:
- '*'
Message:
One-Star: '&fYou found a &e✰&7✰✰✰✰ &fMystery Box!'
Two-Star: '&fYou found a &e✰✰&7✰✰✰ &fMystery Box!'
Three-Star: '&fYou found a &e✰✰✰&7✰✰ &fMystery Box!'
Four-Star: '&fYou found a &e✰✰✰✰&7✰ &fMystery Box!'
Five-Star: '&fYou found a &e✰✰✰✰✰ &fMystery Box!'