mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 10:56:42 +00:00
Added //fast mode, which allows the server to skip the dirtying of chunks. This means that you have to rejoin to see changes though, but most operations are doubled in speed.
This commit is contained in:
@ -60,6 +60,27 @@ public class GeneralCommands {
|
||||
player.print("Block change limit set to " + limit + ".");
|
||||
}
|
||||
|
||||
@Command(
|
||||
aliases = {"/fast"},
|
||||
usage = "",
|
||||
desc = "Toggle fast mode",
|
||||
min = 0,
|
||||
max = 0
|
||||
)
|
||||
@CommandPermissions({"worldedit.fast"})
|
||||
public static void fast(CommandContext args, WorldEdit we,
|
||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||
throws WorldEditException {
|
||||
|
||||
session.setFastMode(!session.hasFastMode());
|
||||
|
||||
if (session.hasFastMode()) {
|
||||
player.print("Fast mode enabled. You may need to rejoin to see changes.");
|
||||
} else {
|
||||
player.print("Fast mode disabled.");
|
||||
}
|
||||
}
|
||||
|
||||
@Command(
|
||||
aliases = {"toggleplace"},
|
||||
usage = "",
|
||||
|
Reference in New Issue
Block a user