From de5c95114f98e90065c1bf2454d837b792c3c499 Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Sun, 18 Jan 2015 15:01:51 +0000 Subject: [PATCH] Adding section on Permissions. --- ...YoungPersonsGuideToProgrammingMinecraft.md | 26 +++++++++++++++++++ src/docs/templates/ypgpm.md | 25 ++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/docs/YoungPersonsGuideToProgrammingMinecraft.md b/docs/YoungPersonsGuideToProgrammingMinecraft.md index 2551869..7ca8988 100644 --- a/docs/YoungPersonsGuideToProgrammingMinecraft.md +++ b/docs/YoungPersonsGuideToProgrammingMinecraft.md @@ -8,6 +8,7 @@ If you would like to make changes, change file src/docs/templates/ypgpm.md inste ## Table of Contents * [Introduction](#introduction) * [Installation](#installation) + * [CanaryMod and Permissions](#canarymod-and-permissions) * [Configuring your Server (optional)](#configuring-your-server-optional) * [Learning Javascript](#learning-javascript) * [First Steps](#first-steps) @@ -101,6 +102,31 @@ Minecraft your way using Javascript. Javascript is easier to learn than Java but it's also more flexible and powerful and is used for creating interactive web sites and many other applications. +## CanaryMod and Permissions +CanaryMod works slightly differently to CraftBukkit in how it handles +permissions and groups. By default, there are 4 groups: visitors, +players, mods and admins. Each player who joins the game is added to the +'visitors' group. This group has no permissions by default so +visitors can't break or place blocks. If you would like to change this +behaviour then issue the following command at the console window: + + groupmod permission add visitors canary.world.build + +If you would like all admins to have scripting ability then issue the +following command: + + groupmod permission add admins scriptcraft.evaluate + +This will enable all admins on your server to issue javascript statements. +All operators can issue any command (including the `/js` command to evaluate javascript). +For more information on CanaryMod's Permissions and Groups see the following: + + * [Permissions and Groups][cmPerms] + * [List of Permissions][cmPermsList] + +[cmPerms]: http://canarymod.net/books/canarymod-admin-guide/permissions-and-groups +[cmPermsList]: http://canarymod.net/books/canarymod-admin-guide/list-permissions + ## Configuring your Server (optional) Once you've installed CanaryMod, depending on your specific needs, diff --git a/src/docs/templates/ypgpm.md b/src/docs/templates/ypgpm.md index 3e410da..71ba98e 100644 --- a/src/docs/templates/ypgpm.md +++ b/src/docs/templates/ypgpm.md @@ -59,6 +59,31 @@ Minecraft your way using Javascript. Javascript is easier to learn than Java but it's also more flexible and powerful and is used for creating interactive web sites and many other applications. +## CanaryMod and Permissions +CanaryMod works slightly differently to CraftBukkit in how it handles +permissions and groups. By default, there are 4 groups: visitors, +players, mods and admins. Each player who joins the game is added to the +'visitors' group. This group has no permissions by default so +visitors can't break or place blocks. If you would like to change this +behaviour then issue the following command at the console window: + + groupmod permission add visitors canary.world.build + +If you would like all admins to have scripting ability then issue the +following command: + + groupmod permission add admins scriptcraft.evaluate + +This will enable all admins on your server to issue javascript statements. +All operators can issue any command (including the `/js` command to evaluate javascript). +For more information on CanaryMod's Permissions and Groups see the following: + + * [Permissions and Groups][cmPerms] + * [List of Permissions][cmPermsList] + +[cmPerms]: http://canarymod.net/books/canarymod-admin-guide/permissions-and-groups +[cmPermsList]: http://canarymod.net/books/canarymod-admin-guide/list-permissions + ## Configuring your Server (optional) Once you've installed CanaryMod, depending on your specific needs,