mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Make autoload maps on /goto default, also fix /fixgrass not checking perbuild permissions. (Thanks goodlyay)
This commit is contained in:
parent
e13aa525bd
commit
bd34d5bb8c
@ -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":
|
||||
|
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user