geforkt von Mirrors/FastAsyncWorldEdit
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
Dieser Commit ist enthalten in:
Ursprung
d30cad6340
Commit
2af31fe231
@ -22,6 +22,8 @@ package com.sk89q.worldedit.commands;
|
|||||||
import com.sk89q.minecraft.util.commands.Command;
|
import com.sk89q.minecraft.util.commands.Command;
|
||||||
import com.sk89q.minecraft.util.commands.CommandContext;
|
import com.sk89q.minecraft.util.commands.CommandContext;
|
||||||
import com.sk89q.minecraft.util.commands.CommandPermissions;
|
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.*;
|
import com.sk89q.worldedit.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -112,6 +114,7 @@ public class NavigationCommands {
|
|||||||
max = 1
|
max = 1
|
||||||
)
|
)
|
||||||
@CommandPermissions({"worldedit.navigation.ceiling"})
|
@CommandPermissions({"worldedit.navigation.ceiling"})
|
||||||
|
@Logging(POSITION)
|
||||||
public static void ceiling(CommandContext args, WorldEdit we,
|
public static void ceiling(CommandContext args, WorldEdit we,
|
||||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
@ -174,6 +177,7 @@ public class NavigationCommands {
|
|||||||
max = 1
|
max = 1
|
||||||
)
|
)
|
||||||
@CommandPermissions({"worldedit.navigation.up"})
|
@CommandPermissions({"worldedit.navigation.up"})
|
||||||
|
@Logging(POSITION)
|
||||||
public static void up(CommandContext args, WorldEdit we,
|
public static void up(CommandContext args, WorldEdit we,
|
||||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
|
@ -216,7 +216,7 @@ public class RegionCommands {
|
|||||||
max = 3
|
max = 3
|
||||||
)
|
)
|
||||||
@CommandPermissions({"worldedit.region.move"})
|
@CommandPermissions({"worldedit.region.move"})
|
||||||
@Logging(REGION) // TODO: Add view direction
|
@Logging(ORIENTATION_REGION)
|
||||||
public static void move(CommandContext args, WorldEdit we,
|
public static void move(CommandContext args, WorldEdit we,
|
||||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
@ -262,7 +262,7 @@ public class RegionCommands {
|
|||||||
max = 2
|
max = 2
|
||||||
)
|
)
|
||||||
@CommandPermissions({"worldedit.region.stack"})
|
@CommandPermissions({"worldedit.region.stack"})
|
||||||
@Logging(REGION) // TODO: Add view direction
|
@Logging(ORIENTATION_REGION)
|
||||||
public static void stack(CommandContext args, WorldEdit we,
|
public static void stack(CommandContext args, WorldEdit we,
|
||||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
|
@ -23,6 +23,8 @@ import java.io.File;
|
|||||||
import com.sk89q.minecraft.util.commands.Command;
|
import com.sk89q.minecraft.util.commands.Command;
|
||||||
import com.sk89q.minecraft.util.commands.CommandContext;
|
import com.sk89q.minecraft.util.commands.CommandContext;
|
||||||
import com.sk89q.minecraft.util.commands.CommandPermissions;
|
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.*;
|
import com.sk89q.worldedit.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -39,6 +41,7 @@ public class ScriptingCommands {
|
|||||||
max = -1
|
max = -1
|
||||||
)
|
)
|
||||||
@CommandPermissions({"worldedit.scripting.execute"})
|
@CommandPermissions({"worldedit.scripting.execute"})
|
||||||
|
@Logging(ALL)
|
||||||
public static void execute(CommandContext args, WorldEdit we,
|
public static void execute(CommandContext args, WorldEdit we,
|
||||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
@ -63,6 +66,7 @@ public class ScriptingCommands {
|
|||||||
max = -1
|
max = -1
|
||||||
)
|
)
|
||||||
@CommandPermissions({"worldedit.scripting.execute"})
|
@CommandPermissions({"worldedit.scripting.execute"})
|
||||||
|
@Logging(ALL)
|
||||||
public static void executeLast(CommandContext args, WorldEdit we,
|
public static void executeLast(CommandContext args, WorldEdit we,
|
||||||
LocalSession session, LocalPlayer player, EditSession editSession)
|
LocalSession session, LocalPlayer player, EditSession editSession)
|
||||||
throws WorldEditException {
|
throws WorldEditException {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren