mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 10:28:35 +00:00
Added /thaw.
This commit is contained in:
@ -155,6 +155,7 @@ public class WorldEditController {
|
||||
commands.put("/forestgen", "<Size> <Density> - Make Notch tree forest");
|
||||
commands.put("/pinegen", "<Size> <Density> - Make an ugly pine tree forest");
|
||||
commands.put("/snow", "<Radius> - Simulate snow cover");
|
||||
commands.put("/thaw", "<Radius> - Unthaw/remove snow");
|
||||
commands.put("/pumpkins", "<Size> - Make a pumpkin forest");
|
||||
commands.put("/unstuck", "Go up to the first free spot");
|
||||
commands.put("/ascend", "Go up one level");
|
||||
@ -1219,6 +1220,16 @@ public class WorldEditController {
|
||||
|
||||
return true;
|
||||
|
||||
// Thaw
|
||||
} else if (split[0].equalsIgnoreCase("/thaw")) {
|
||||
checkArgs(split, 0, 1, split[0]);
|
||||
int size = split.length > 1 ? Math.max(1, Integer.parseInt(split[1])) : 10;
|
||||
|
||||
int affected = editSession.thaw(player.getBlockIn(), size);
|
||||
player.print(affected + " surfaces thawed.");
|
||||
|
||||
return true;
|
||||
|
||||
// Make pumpkin patches
|
||||
} else if (split[0].equalsIgnoreCase("/pumpkins")) {
|
||||
checkArgs(split, 0, 1, split[0]);
|
||||
|
Reference in New Issue
Block a user