Disables block gravity and makes it togglable (FS-89) (#50)

* Disables block gravity by default (FS-89)

* Combine these checks as Codacy ever so kindly suggested
This commit is contained in:
Video
2021-04-19 01:34:36 -06:00
committed by GitHub
parent 20c2c4c96e
commit 2cdf1e66a6
4 changed files with 21 additions and 1 deletions

View File

@ -54,6 +54,7 @@ public class Command_toggle extends FreedomCommand
msg("- landmines");
msg("- mp44");
msg("- tossmob");
msg("- gravity");
return false;
}
@ -297,6 +298,12 @@ public class Command_toggle extends FreedomCommand
toggle("Tossmob is", ConfigEntry.TOSSMOB_ENABLED);
break;
}
case "gravity":
{
toggle("Block gravity is", ConfigEntry.ALLOW_GRAVITY);
break;
}
}
return true;
}
@ -320,7 +327,7 @@ public class Command_toggle extends FreedomCommand
"waterplace", "fireplace", "lavaplace", "fluidspread", "lavadmg", "firespread", "frostwalk",
"firework", "prelog", "lockdown", "petprotect", "entitywipe", "nonuke", "explosives", "unsafeenchs",
"bells", "armorstands", "structureblocks", "jigsaws", "grindstones", "jukeboxes", "spawners", "4chan", "beehives",
"respawnanchors", "autotp", "autoclear", "minecarts", "mp44", "landmines", "tossmob");
"respawnanchors", "autotp", "autoclear", "minecarts", "mp44", "landmines", "tossmob", "gravity");
}
return Collections.emptyList();
}