From 2af31fe23168942c5f11dff664ba122d57ca67ed Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Tue, 9 Aug 2011 01:18:50 +0200 Subject: [PATCH] Added position logging to /up, /ceil, position+orientation+region logging for the script commands and changed the logging for //move and //stack to orientation+region --- .../java/com/sk89q/worldedit/commands/NavigationCommands.java | 4 ++++ .../java/com/sk89q/worldedit/commands/RegionCommands.java | 4 ++-- .../java/com/sk89q/worldedit/commands/ScriptingCommands.java | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/commands/NavigationCommands.java b/src/main/java/com/sk89q/worldedit/commands/NavigationCommands.java index b3efbc518..d3f14ca17 100644 --- a/src/main/java/com/sk89q/worldedit/commands/NavigationCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/NavigationCommands.java @@ -22,6 +22,8 @@ package com.sk89q.worldedit.commands; import com.sk89q.minecraft.util.commands.Command; import com.sk89q.minecraft.util.commands.CommandContext; import com.sk89q.minecraft.util.commands.CommandPermissions; +import com.sk89q.minecraft.util.commands.Logging; +import static com.sk89q.minecraft.util.commands.Logging.LogMode.*; import com.sk89q.worldedit.*; /** @@ -112,6 +114,7 @@ public class NavigationCommands { max = 1 ) @CommandPermissions({"worldedit.navigation.ceiling"}) + @Logging(POSITION) public static void ceiling(CommandContext args, WorldEdit we, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { @@ -174,6 +177,7 @@ public class NavigationCommands { max = 1 ) @CommandPermissions({"worldedit.navigation.up"}) + @Logging(POSITION) public static void up(CommandContext args, WorldEdit we, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { diff --git a/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java b/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java index 7da4ba92c..d5cbd25ea 100644 --- a/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java @@ -216,7 +216,7 @@ public class RegionCommands { max = 3 ) @CommandPermissions({"worldedit.region.move"}) - @Logging(REGION) // TODO: Add view direction + @Logging(ORIENTATION_REGION) public static void move(CommandContext args, WorldEdit we, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { @@ -262,7 +262,7 @@ public class RegionCommands { max = 2 ) @CommandPermissions({"worldedit.region.stack"}) - @Logging(REGION) // TODO: Add view direction + @Logging(ORIENTATION_REGION) public static void stack(CommandContext args, WorldEdit we, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { diff --git a/src/main/java/com/sk89q/worldedit/commands/ScriptingCommands.java b/src/main/java/com/sk89q/worldedit/commands/ScriptingCommands.java index d531743f6..877b13ddc 100644 --- a/src/main/java/com/sk89q/worldedit/commands/ScriptingCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/ScriptingCommands.java @@ -23,6 +23,8 @@ import java.io.File; import com.sk89q.minecraft.util.commands.Command; import com.sk89q.minecraft.util.commands.CommandContext; import com.sk89q.minecraft.util.commands.CommandPermissions; +import com.sk89q.minecraft.util.commands.Logging; +import static com.sk89q.minecraft.util.commands.Logging.LogMode.*; import com.sk89q.worldedit.*; /** @@ -39,6 +41,7 @@ public class ScriptingCommands { max = -1 ) @CommandPermissions({"worldedit.scripting.execute"}) + @Logging(ALL) public static void execute(CommandContext args, WorldEdit we, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException { @@ -63,6 +66,7 @@ public class ScriptingCommands { max = -1 ) @CommandPermissions({"worldedit.scripting.execute"}) + @Logging(ALL) public static void executeLast(CommandContext args, WorldEdit we, LocalSession session, LocalPlayer player, EditSession editSession) throws WorldEditException {