ru.cwcode.commands.paperplatform.PrintArguments Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of PaperCommands Show documentation
Show all versions of PaperCommands Show documentation
Commands library for Paper (Minecraft)
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