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 Details

    • CommandLoggingHandler

      public CommandLoggingHandler(WorldEdit worldEdit, Logger logger)
      Create a new instance.
      Parameters:
      worldEdit - an instance of WorldEdit
      logger - the logger to send messages to
  • Method Details

    • beforeCall

      public void beforeCall(Method method, org.enginehub.piston.CommandParameters parameters)
      Specified by:
      beforeCall in interface org.enginehub.piston.gen.CommandCallListener
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable