Server policies control which players have access to a server, and what privileges they have.

They can also be used to send arbitrary commands at server logon.


Opening Policy Control Screen

  1. Open the server's world in the MinePass Portal
  2. Navigate to Setup » Servers
  3. Click the name of the server you want to manage
  4. Click the Manage Policy button

Minecraft Privileges

mc:<GAMEMODE>

The following modes are available:
  default
  creative
  adventure
  survival
  spectator
Set player's Minecraft gamemode

Use "mc:default" to let the server manage the mode for the player.
The typical behavior would be the default from "server.properties", or the last mode
given to the player by an operator or command block. However it could be different
if you have other security mods/plugins installed.

The other modes are (re)set at each logon, so any mode changes
while the player is online would just be temporary.


You must set a mode (or mc:default) in order for players to logon to the server.

Otherwise players will be kicked with the message:

"Your current MinePass does not permit access to this server."

mc:/<COMMAND> [ARGS...]

The following substitutions are available:
  $name — Player IGN
  $uuid — Player Mojang UUID
Run console command(s) at player logon
Example: "mc:/tell $name You just logged on"
  • Commands run as the console user
  • Multiple commands will always be run in the order listed
    (Use multiple "mc:/<COMMAND>" lines in the rank's privileges.)
  • Don't use the @p target selector, use @a[name=$name] with your target args
  • You can also use the /execute Minecraft command to operate as the player

Running commands one-time only (instead of at each logon)


First, and very important... make sure this is absolutely necessary. Many commands
could be safely run each time the player logs on, and this ensures their settings
always match the policy and are not stale.

The easiest way to achieve this is to filter your commands with a tag, and then set
that tag as the final command. Example:
[
    "mc:/tell @a[name=$name,tag=!SETUPv1] This is your first logon",
    "mc:/scoreboard players tag $name add SETUPv1"
]

If you make changes to the policy in the future, replace SETUPv1 with SETUPv2, etc.
(Change the tag each time you change the policy to ensure it gets applied again.)


Minetest Privileges

mt:all Grant player all available Minetest privileges
mt:<PRIVILEGE>

The following privileges are commonly available:
  server, shout, fly, password, bring,
  kick, teleport, ban, noclip, interact,
  fast, home, privs, give, protection_bypass,
  rollback, settime, basic_privs
Grant player one or more named privilege