Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class First {
- private ClickAction.RunCommand runCommand(String command){
- return null;
- }
- @Listener
- public void onCos(ClientConnectionEvent.Join evt){
- if(evt.getTargetEntity().getName() == "__WolereK__"){
- Text t1 = Text.builder("Click me")
- .color(TextColors.GOLD)
- .style(TextStyles.BOLD, TextStyles.ITALIC)
- .onClick(runCommand("help"))//<--- tutaj tego potrzebuje
- .build();
- evt.getTargetEntity().sendMessage(t1);
- }else{
- Text t = Text.builder("Hey")
- .color(TextColors.GRAY)
- .build();
- evt.getTargetEntity().sendMessage(t);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement