Grzybcio Wiki
GrzybcioKilof

Commands and permissions

Handing the pickaxe to yourself and others, reloading the config, and who is allowed to do what.

The plugin registers one command — /grzybcio-kilof — with three ways to use it.

Commands

CommandWhat it doesPermission
/grzybcio-kilofGives you a pickaxegrzybciokilof.give
/grzybcio-kilof <player>Gives a pickaxe to the named playergrzybciokilof.give
/grzybcio-kilof reloadReloads config.ymlgrzybciokilof.reload

The command has Tab completion: it suggests online player names, and for anyone with grzybciokilof.reload it also suggests reload.

Giving yourself a pickaxe only works in game

/grzybcio-kilof with no argument has to be run by a player — the console has no inventory, so it gets the tylko-gracz message. From the console you can still give one to someone: grzybcio-kilof Nick.

Permissions

PermissionDefaultWhat it grants
grzybciokilof.giveoperatorsAccess to the /grzybcio-kilof command
grzybciokilof.useeveryoneAllows 3×3 mining
grzybciokilof.reloadoperatorsAllows reloading the configuration

The catch with grzybciokilof.use

This permission is only checked when you set wymagaj-uprawnienia: true in the configuration. With the default false the plugin never looks at it — the pickaxe works for anyone holding it.

If you want to restrict the pickaxe to one group, taking grzybciokilof.use away is not enough. You have to enable wymagaj-uprawnienia: true in config.yml first, and only then manage the permission.

Typical setups

Pickaxe for VIPs only

In config.yml set:

wymagaj-uprawnienia: true

Grant the permission to the VIP group. In LuckPerms:

/lp group vip permission set grzybciokilof.use true

Reload the configuration:

/grzybcio-kilof reload

From then on the pickaxe behaves like a normal one for regular players, even if it ends up in their hands (bought, traded, picked up).

Pickaxe as a crate or shop reward

Most crate and shop plugins can run a command from the console. Set it to:

grzybcio-kilof %player%

The console has operator rights, so grzybciokilof.give is not an issue. Players need no extra permissions.

Keeping the command away from regular players

Nothing to do — grzybciokilof.give defaults to operators only. Just make sure you have not accidentally granted everyone a wildcard (grzybciokilof.* or a global *).

What a player without permission sees

The brak-uprawnien message from config.yml, plus the text defined in plugin.yml for the command itself:

Nie masz uprawnień do tej komendy!

That message is in Polish

The permission-denied text on the command itself comes from plugin.yml, which ships in Polish and is not configurable. The message in config.yml (brak-uprawnien) is configurable — set it to whatever language your server uses.

On this page