Class EffectCommand

java.lang.Object
cn.nukkit.command.Command
cn.nukkit.command.defaults.EffectCommand
All Implemented Interfaces:
GenericParameter

public class EffectCommand extends Command
Since:
2016/1/23
Author:
Snake1999 and Pub4Game
  • Constructor Details

    • EffectCommand

      public EffectCommand(String name)
  • Method Details

    • execute

      @Since("1.19.60-r1") public int execute(CommandSender sender, String commandLabel, Map.Entry<String,ParamList> result, CommandLogger log)
      Description copied from class: Command
      Execute int.
      Overrides:
      execute in class Command
      Parameters:
      sender - 命令发送者
      commandLabel - the command label
      result - 解析的命令结果
      log - 命令输出工具
      Returns:
      int 返回0代表执行失败, 返回大于等于1代表执行成功