Make autoload maps on /goto default, also fix /fixgrass not checking perbuild permissions. (Thanks goodlyay)

This commit is contained in:
UnknownShadow200 2016-08-28 10:21:23 +10:00
parent e13aa525bd
commit bd34d5bb8c
2 changed files with 7 additions and 4 deletions

View File

@ -27,8 +27,11 @@ namespace MCGalaxy.Commands.World {
public override void Use(Player p, string message) {
int totalFixed = 0;
Level lvl = p.level;
switch (message.ToLower())
{
if (p != null && !lvl.BuildAccess.CheckDetailed(p, false)) {
Player.Message(p, "Hence you cannot use /fixgrass on this map"); return;
}
switch (message.ToLower()) {
case "":
FixDirtAndGrass(p, lvl, ref totalFixed); break;
case "light":

View File

@ -260,8 +260,8 @@ namespace MCGalaxy {
public static bool physicsRestart = true;
[ConfigBool("deathcount", "Other", null, true)]
public static bool deathcount = true;
[ConfigBool("autoload", "Server", null, false)]
public static bool AutoLoad = false;
[ConfigBool("autoload", "Server", null, true)]
public static bool AutoLoad = true;
[ConfigInt("physics-undo-max", "Other", null, 20000)]
public static int physUndo = 20000;
[ConfigInt("total-undo", "Other", null, 200)]