diff --git a/dialog/README.md b/dialog/README.md
index 0bf858d5..b59c35c0 100644
--- a/dialog/README.md
+++ b/dialog/README.md
@@ -23,12 +23,15 @@ Sample Plugin
Dialog notice = new NoticeDialog( new DialogBase( new ComponentBuilder( "Hello" ).color( ChatColor.RED ).build() ) );
player.showDialog( notice );
- notice = new SimpleInputFormDialog(
- new DialogBase( new ComponentBuilder( "Hello" ).color( ChatColor.RED ).build() ),
- new DialogSubmitAction( "submit", new CustomFormSubmission( "customform" ), new ComponentBuilder( "Submit Button" ).build() ),
- new TextInput( "first", new ComponentBuilder( "First" ).build() ),
- new TextInput( "second", new ComponentBuilder( "Second" ).build() )
- );
+ notice = new NoticeDialog(
+ new DialogBase( new ComponentBuilder( "Hello" ).color( ChatColor.RED ).build() )
+ .inputs(
+ Arrays.asList( new TextInput( "first", new ComponentBuilder( "First" ).build() ),
+ new TextInput( "second", new ComponentBuilder( "Second" ).build() )
+ )
+ ) )
+ .action( new DynamicAction( new ComponentBuilder( "Submit Button" ).build(), new Custom( "customform" ) ) );
+
player.sendMessage( new ComponentBuilder( "click me" ).event( new ShowDialogClickEvent( notice ) ).build() );
}
}
diff --git a/dialog/src/main/java/net/md_5/bungee/api/dialog/dynamic/RunCommand.java b/dialog/src/main/java/net/md_5/bungee/api/dialog/dynamic/RunCommand.java
index b5a9d6bc..77c10e79 100644
--- a/dialog/src/main/java/net/md_5/bungee/api/dialog/dynamic/RunCommand.java
+++ b/dialog/src/main/java/net/md_5/bungee/api/dialog/dynamic/RunCommand.java
@@ -21,9 +21,6 @@ public class RunCommand extends DynamicType
* The template to be applied, where variables of the form
* $(key)
will be replaced by their
* {@link net.md_5.bungee.api.dialog.input.DialogInput#key} value.
- *
- * The action
key is special and will be replaced with the
- * {@link net.md_5.bungee.api.dialog.action.DialogSubmitAction#id}.
*/
@NonNull
private String template;