-
Notifications
You must be signed in to change notification settings - Fork 9
Configuration
Aurélien edited this page Nov 11, 2021
·
4 revisions
Note: please copy lines between # BEGIN
and # END
markers, the rest is only template to help you locating lines and sections!
Choose a custom StateFlag (true/false, allow/deny) from the WorldGuard wiki (WorldGuard flags), from your own or from another plugin. Memorize its id named flag_id
.
- Stop your server and open
Landlord/config.yml
. Then check out this section and add theflag_id
to the list.Flags: ... # BEGIN - 'flag_id' # END ...
- Go down a few lines and add this section, replacing the
flag_id
, the material and the expected default values.Manage: commands: ... # BEGIN flag_id: enable: true item: REDSTONE default: friends: true everyone: false # END spread-flags: ...
- Save & open your language file, like
Landlord/messages/en.yml
. Then check out this section and replace theflag_id
and the expected title and description.
WARNING: First letter uppercase is necessary!... Commands: ... Manage: ... invalidArguments: ... # BEGIN AllowFlag-id: title: '&cAllow something' description: - ' &7Toggle the ability for someone to' - ' &7do something' # END Help: ...
- Save & restart.
- Don't forget to add the required permission to players that should be able to configure the new flag:
landlord.player.manage.flag-id
- Enjoy your new flag in-game!
Feel free to translate the plugin in the way that suits you best, to use the translations provided and to suggest improvements by making a pull request (Make a Pull Request).
You can view, copy and modify everything from this page: Translations.
- In order to use the provided translations, stop your server and open
Landlord/config.yml
. Then check out this line and replace the value with your languageid
.... # BEGIN language: ``id`` # END ...
- Save & restart.