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
ConstructorDescriptionCommandLoggingHandler
(WorldEdit worldEdit, Logger logger) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeCall
(Method method, org.enginehub.piston.CommandParameters parameters) void
close()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
beforeCall
in interfaceorg.enginehub.piston.gen.CommandCallListener
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-