- Download the most recent release from releases page.
- Move downloaded JAR to
plugins/
folder. - Restart (or reload) your server.
- Configure MySQL connection in
plugins/AllowDB/config.yml
config file. - Restart (or reload) your server again, or restart AllowDB plugin if you have any plugin management utilities installed.
Currently AllowDB ships with two locales bundled: English (en
) and Russian (ru
.)
For creating/editing locales see creating/editing locales section.
MySQL connection URL has the following format:
jdbc:mysql://user:password@127.0.0.1:3306/allows
In this reference connection string:
jdbc:mysql://
prefix is a mandatory part of URLuser
is a sample username of database userpassword
is a sample password of database user127.0.0.1
is IP address to MySQL database host3306
is default MySQL portallows
is name of MySQL database to use
Note! If username or password contain special characters (out of alphanumeric character set, e.g. !@#$%^&*()
), you
will need to URL-encode its value.
You can configure server kick message (that unallowed users will see when they will try to connect) with
messages.not-listed
parameter. Color codes are also supported with ยง
(section sign.)
AllowDB lets you manage your allowlist with /adb add <nickname or UUID>
or /adb remove <nickname or UUID>
commands
with username or UUID (with or without dashes).
AllowDB provides /adb reload
command for reloading configuration from disk and reconnecting to database.
AllowDB has clear and concise permission nodes for every command as well as wildcard permissions for full access to
every command (allowdb.command.*
and allowdb.*
.)
However, you will still need allowdb.command
permission (note that it does not end with .*
) for players to use any
of /adb
commands (and for it to appear in command list when you type it.)
Command | Permission node |
---|---|
/adb add |
allowdb.command.add |
/adb remove |
allowdb.command.remove |
/adb reload |
allowdb.command.reload |
/adb help |
allowdb.command.help |
Locales are stored in files messages_LANG.yml
files in JAR file root (where LANG
is two-letter locale code,
e.g. en
or ru
.) If you want to edit existing locales or add your own, edit one of these files or copy one of them
for reference and edit it for your own needs.
Localized strings use standard String.format(...)
formatting placeholders (e.g. %1$s
, %2$s
where digit is
positional placeholder index.)