Class CommandLoggingHandler
java.lang.Object
com.sk89q.worldedit.internal.command.CommandLoggingHandler
- All Implemented Interfaces:
AutoCloseable,org.enginehub.piston.gen.CommandCallListener
public class CommandLoggingHandler
extends Object
implements org.enginehub.piston.gen.CommandCallListener, AutoCloseable
Logs called commands to a logger.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandLoggingHandler(WorldEdit worldEdit, Logger logger) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeCall(Method method, org.enginehub.piston.CommandParameters parameters) voidclose()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.enginehub.piston.gen.CommandCallListener
afterCall, afterThrow
-
Constructor Details
-
CommandLoggingHandler
Create a new instance.- Parameters:
worldEdit- an instance of WorldEditlogger- the logger to send messages to
-
-
Method Details
-
beforeCall
- Specified by:
beforeCallin interfaceorg.enginehub.piston.gen.CommandCallListener
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-