Refactor dialog actions

This commit is contained in:
md_5
2025-05-31 11:15:41 +10:00
parent 23ba5141f1
commit cd1ceb4c31
17 changed files with 124 additions and 162 deletions

View File

@@ -30,7 +30,7 @@ Sample Plugin
new TextInput( "second", new ComponentBuilder( "Second" ).build() )
)
) )
.action( new DynamicAction( new ComponentBuilder( "Submit Button" ).build(), new Custom( "customform" ) ) );
.action( new ActionButton( new ComponentBuilder( "Submit Button" ).build(), new CustomClickAction( "customform" ) ) );
player.sendMessage( new ComponentBuilder( "click me" ).event( new ShowDialogClickEvent( notice ) ).build() );
}