Interface PlanFabricEvents.OnCommand

Enclosing class:
PlanFabricEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PlanFabricEvents.OnCommand
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCommand(net.minecraft.server.network.ServerPlayNetworkHandler handler, String message)
    Called when a player sends a chat message / command
  • Method Details

    • onCommand

      void onCommand(net.minecraft.server.network.ServerPlayNetworkHandler handler, String message)
      Called when a player sends a chat message / command
      Parameters:
      handler - the handler of the sending player
      message - the message sent (starts with "/" if it is a command)