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

This commit is contained in:
TomyLobo 2011-08-09 01:18:50 +02:00
parent d30cad6340
commit 2af31fe231
3 changed files with 10 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {