All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.cwcode.commands.paperplatform.PrintArguments Maven / Gradle / Ivy

There is a newer version: 1.4.5
Show newest version
package ru.cwcode.commands.paperplatform;

import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.event.HoverEvent;
import ru.cwcode.commands.paperplatform.executor.Executor;

public class PrintArguments extends Executor {
  @Override
  public void executeForPlayer() {
    for (int i = 0; isPresent(i); i++) {
      sender().sendMessage(arg(i).toComponent(getCommand().getRootCommand().getColorScheme(), true)
                                 .append(Component.text(": " + argS(i)))
                                 .hoverEvent(HoverEvent.showText(Component.text(arg(i).getClass().getSimpleName()))));
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy