- Added a -p flag to //flip that makes it flip around the player instead of the center of the clipboard.

- Code cleanup
This commit is contained in:
TomyLobo
2011-08-26 04:57:05 +02:00
parent 84ed4bf4c3
commit 2281684f20
2 changed files with 30 additions and 11 deletions

View File

@ -153,7 +153,8 @@ public class ClipboardCommands {
@Command(
aliases = {"/flip"},
usage = "[dir]",
desc = "Flip the contents of the clipboard",
flags = "p",
desc = "Flip the contents of the clipboard. To flip it around yourself, use the -p flag.",
min = 0,
max = 1
)
@ -166,7 +167,7 @@ public class ClipboardCommands {
args.argsLength() > 0 ? args.getString(0).toLowerCase() : "me");
CuboidClipboard clipboard = session.getClipboard();
clipboard.flip(dir);
clipboard.flip(dir, args.hasFlag('p'));
player.print("Clipboard flipped.");
}