Conversation icon

Conversation -----

A light-weight conversation library



Theorily this plugin supports all the version maybe

Example:
Code (Java):
ConversationBuilder builder = Conversation. of ( ) ;
builder. text ( Component. text ( "Hello, traveller!" ) ) ; // Set the words which will be spoken by the npc
builder. name ( Component. text ( "Old Man" ). color (NamedTextColor. GOLD ) ) ; // Set the name of the npc
builder. node (Node. of ( )
                . text ( Component. text ( "Any problem?" ) ) // The text to show
                . sub (
                    Node. of ( )
                        . text ( "Ok, here you are" ) // The text to show after clicked the button
                        . button ( Button. of ( )
                                    . text ( Component. text ( "[I need some apples]" ). color (NamedTextColor. RED ) ) // set text
                                    . hover ( Component. text ( "Click to get apples" ). color (NamedTextColor. YELLOW ) ) // set hover text
                                    . executor (event -> { // set click executor
                                        Player player = event. player ( ) ; // Get the clicker
                                        player. getInventory ( ). addItem ( new ItemStack (Material. APPLE ) ) ;
                                    } ) )
                    Node. of ( )
                        . text ( "Well, good bye" ) // The text to show after clicked the button
                        . button ( Button. of ( )
                                    . text ( Component. text ( "[No, thanks]" ). color (NamedTextColor. GRAY ) ) )
                ) // Append sub nodes
            ) ; // Append nodes
builder. waiting ( 1 ) ; // Set how many seconds to wait for showing next nodes
Conversation conversation = builder. build ( ) ; // build the conversation

Player player = ... ;
conversation. start (player ) ; // Start the conversation for player
Goto Github Wiki for more information
Resource Information
Author:
----------
Total Downloads: 37
First Release: Jan 24, 2023
Last Update: Jan 24, 2023
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings